Bookmarklets are powerful bookmarks/favorites that can change the appearance, navigation, rearrange a page, and even sort tables. But these aren't that powerful, they'll just save a few click. If you like these then checkout Jesse's Bookmarklets.
| Dispenser's | Other people's | Outside Wikipedia |
|---|---|---|
| Updated: April 16, 2012 | ||
addPortletLink( portlet, // HTML id of where to insert. Values: p-cactions (next to history), p-tb (Toolbox) href, // URL text, // Link or tab Text id, // Unique HTML ID (useful for DOM manipulation) tooltip, // Tooltip text (the yellow boxes that appear when you rest your mouse) accesskey, // Keyboard shortcut key, Alt+Shift+LETTER nextnode // )
In the below example to your skin .js, we add a link next to history for Dab solver labeling it as "Solve DABs" with a tooltip of "Disambiguate links" and finally a keyboard shortcut Alt+Shift+3
addOnloadHook(function () {
addPortletLink("p-cactions",
"//toolserver.org/~dispenser/cgi-bin/dab_solver.py?page="+wgContentLanguage+":"+encodeURIComponent(wgPageName),
'Solve DABs', null, "Disambiguate links", '3');
});