Skip Ribbon Commands
Skip to main content




version 0.9 - Copyright (c) 2010 Christophe Humbert


On a SharePoint page, the above bookmarklet adds an expand/collapse button to each Web Part, next to the title.


You don't need edit rights to use it, the bookmarklet will work as long as you have read access to the page.

Try it now: click on the "Expand/Collapse Buttons" link above, and watch the script run on this page.

This works in both SharePoint 2007 and SharePoint 2010. Below an example with the bookmarklet applied to a SharePoint 2010 page (compare with the original page




The bookmarklet is compacted so that its length is less than 500 characters. It should work in all browsers.



Browsers allow you to save not only URLs, but also scripts as bookmarks (Firefox, Safari) or favorites (Internet Explorer). These special links that contain scripts are known as bookmarklets, or favelets.
To save a bookmarklet, just do like for regular bookmarks: right click on the link, and select "Add to Favorites" (Internet Explorer) or "Bookmark". Because the link contains code, you'll get a warning. Only accept bookmarklets from trusted sources! Your bookmarklet is then ready for use.
When you select a bookmark, the browser loads the corresponding Web page. When you select a bookmarklet, the browser remains on the current page and runs the script.
Copyright © 2011 User Managed Solutions, LLC