TitleSearch, Edit, and Goto Bookmarklets
Date27-Nov-2005 22:36:06 EET
JSPWiki version
SubmitterDanHoward
Idea CategoryUserInterfaceIdea
Reference
Idea StatusNewIdea

Use these bookmarklets for a quick way navigate around a wiki which you do not control. (If you do control a wiki, try my much more elegant solution, "Idea Search, Edit And GoTo Buttons, which builds buttons into the wiki interface.)

Adding a bookmarklets in your browser is just like adding a regular "bookmark" (or a "favorite" in IE), except that where your browser wants to store a URL, you store a bit of javascript code instead. Give it a meaningful name, and place it somewhere that you can get to it super-easily with the mouse or keyboard.

(Note that in each case, you'll need to change the hard-coded base-URL of the wiki in the javascript. These ones work for http://www.JSPWiki.org as they are.)

Go To any page #

Pops up a query box, you type in the name of the page you want, and it takes you there. Add this as a bookmark in your browser:

Edit any page #

Pops up a query box, you type in the name of the page you want to edit, and it takes you straight to editing it. Add this as a bookmark in your browser:

Edit current page#

This is a bit fancier, and is nice, because it should work for any wiki (any JSPWiki, that is). It grabs the URL of the page you are looking at, extracts the WikiPageName, and takes you straight to editing it. Basically, it saves you the trouble of having to hunt for and click on the "edit this page" link. Handy if you love keyboard shortcuts.

Works with the older URL form (http://www.jspwiki.org/Wiki.jsp?page=FooBar) and the newer form (http://www.jspwiki.org/wiki/FooBar).

Just add this as a bookmark in your browser:

  • javascript: lnk=location.href; indx=lnk.indexOf('Wiki.jsp?page='); if(indx!=-1){ new_lnk=lnk.substring(0,indx)+'Edit.jsp'+lnk.substring(indx+8); document.location.href=new_lnk; } else { indx=lnk.indexOf('wiki/'); if(indx!=-1){ new_lnk=lnk.substring(0,indx)+'Edit.jsp?page='+lnk.substring(indx+5); document.location.href=new_lnk; } else { alert('Can\'t edit this! It is not a JSPWiki page.'); } }

Quick Search #

Pops up a query box, you type in some text, and it does a search for it. Add this as a bookmark in your browser:

If you like these bookmarklets, check out my even-better "one-click editing" idea. It lets you see a link to another wikipage, right click it, pick "edit wiki page" from the context menu and start editing straight away! It is designed for the Opera web-browser, but you could probably make it work for Firefox too with a little more hacking.

Again, these bookmarklets are handy, but if you run your own install of JSPWiki, try IdeaSearchEditAndGoToButtons instead.

--DanHoward, November 2005

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-11) was last changed on 09-Apr-2007 18:33 by David Au