Wednesday, July 5, 2006

Keyboard Shortcut for BibSonomy Posting in Firefox

Here's how to make Firefox post your current page at the push of a button:


  1. Install the KeyConfig extension

  2. Bind the following code to a key of your choosing, replacing MYUSERNAME with your user name:

    gBrowser.loadURI("javascript:location.href=
    'http://www.bibsonomy.org/ShowBookmarkEntry?c=b&jump=yes
    &user=MYUSERNAME&url='+encodeURIComponent(location.href)+'
    &description='+encodeURIComponent(document.title)+'
    &extended='+encodeURIComponent(window.getSelection())")

    Make sure to keep it all on one line.