This way, whenever you want to run a big chunk of code in your browser that would affect the currently opened website, you can simply push a button and off you go.
This is known as a "bookmarklet".
The concept is simple:
- Develop a script that would add some function to the existing website (but will be executed on demand instead)
- Go to the Bookmarkleter page to convert the script
- Drag-and-drop the bookmark (or create it yourself) with the new "link"
Examples of SharePoint bookmarklets:
My very own "SPDevTools"
This script will inject several buttons near the SharePoint ribbon with several functions, such as:
- Display the file:// url for the current location (so that it can be quickly opened in explorer in non-IE browsers)
- Display the site template ID
- Refresh the page (no postback)
- Get a link to the current page (handy in iframes)
- Sign in as a different user (feature removed in SP2013)
Anatoly Mironov's Webpart Exporter
A long way has come since we used other methods to export webparts, such as:
- Opening the URL: /_vti_bin/exportwp.aspx?pageurl=http://mysite/SitePages/Home.aspx&guidstring=WEBPARTIDGUID
- manually inject AllowExport="true" in the html of the WebpartID element while in edit mode, which brings back the Export contextual menu option
This new method, bookmarlet supported of course, will actually find all the webparts in the current page and allow you to export every single one of them with a simple click.
Dan Saedén's Web Properties Updater
This other handy piece of code will display all the current Web's properties, and allow you to add, edit or remove any of them very easily.
There is also a great Google Chrome plugin - "ChromeSPEditor" - that can manage UserCustomActions and Web Properties.