Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to set up shortcuts (hotkeys) for several Firefox bookmarks (they're actually bookmarklets). One example is the pinboard.in bookmarklet. Does anyone know how to do this?

share|improve this question
    
ask.metafilter.com/23032/… –  Tommy Feb 9 '12 at 2:12
    
The keyconfig extension described in the referenced article partially works. The instructions are wrong (or perhaps difficult to follow). When properly configured, a shortcut key will work, except NoScript seems to block it (unless the page is unblocked). Clicking on the bookmarklet does not seem to be affected by NoScript, and I'd like the same to apply for the shortcut. –  jdigital Feb 9 '12 at 4:57

3 Answers 3

up vote 3 down vote accepted

Initially, my solution was to assign a keyword to a bookmarklet and then use AutoHotkey to automate the following steps: pressing Ctrl+L to select the address bar, typing in the keyword, and pressing Enter.

This works great with normal bookmarks, as you will be taken to a new page. However, with bookmarklets that work with the current page, this is clumsy and moves the keyboard's focus. So, in an effort to avoid the address bar altogether, I've devised the following solution.

Setup:

  1. Create a new folder in the Bookmarks Menu. Since we will be using the keyboard, give it a name that can be accessed with one keystroke, i.e. the first character is unique. I chose .Hotkeyed.

  2. Move your bookmark to this folder, renaming them to begin with a character. This character will be used as part of the hotkey. For example, a : Bookmark.

  3. Now, let's be sure we can click the bookmark using the keyboard. Pressing Alt, B, . should nagivate like so:

    bookmark menu

    and pressing a should click the first bookmark.

AutoHotkey Script:

Why press four keys, when you do it in less?

#a:: ;Win+A
KeyWait, LWin ; Win+Alt alone does nothing.
Send, {Alt} ;Menu >
Send, b ;Bookmarks >
Send, . ;.Hotkeyed >
Send, a ;Bookmark 1
Exit
share|improve this answer
    
Thanks for your reply. This works but it changes the contents of the address bar. Can you find a way to restore the address bar to its original contents? –  jdigital Feb 9 '12 at 19:04
    
@jdigital Sure! I will update the script. –  iglvzx Feb 9 '12 at 19:06
    
Hold on... I have a better idea which avoids the address bar altogether. –  iglvzx Feb 9 '12 at 19:23
1  
Great idea: placing the bookmarklet in a menu location that is accessible by single letter navigation. The IfWinActive code doesn't work for me, but you've provided enough information here to allow me to solve the problem. Thank you! –  jdigital Feb 9 '12 at 20:53
1  
@jdigital Ah. I sometimes have problems with #IfWinActive, too. I'll remove it, since it is not strictly necessary. You're welcome! –  iglvzx Feb 9 '12 at 21:03

Although this is not quite what you are asking, it might be of interest. I do the following:

  • right click on the bookmark you want
  • select copy from the menu
  • go to the desktop
  • right click on the desktop and click paste shortcut
  • right click on the shortcut once it is in place, select the Web Document tab and enter the short cut you want in the Shortcut Key field.
  • click OK - you are done (if you like you can change the name of the shortcut on the desktop to include the description of the short cut, e.g. "CTRL+ SHIFT + G - Google")

Advantages: works with no installation of add-on; allows you to summon up the link even if you are not in firefox; you can use any shortcut that does not clash with something else, and are not restricted to CTRL 1-9 or something

Disadvantage: you end up with a bunch of shortcuts sitting on your desktop; if you delete the shortcut you have lost the "keybinding"

Hope this helps

share|improve this answer

Try AutoHotkey (not only for Firefox but for any application...)

share|improve this answer
    
We need to know an operating system first. AHK is for Windows. –  iglvzx Feb 9 '12 at 4:30
1  
I'm running Windows. I've written AHK scripts, but can't figure out how to write a script to activate a Bookmarklet. –  jdigital Feb 9 '12 at 4:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.