How can I assign a keyboard shortcut to open a bookmark on FireFox? [duplicate]
Solution 1:
No need of a Firefox add on. Just right click any bookmarks select properties and add keyword there. Now you can open your favourite site by just entering the keyword in the address bar. This post will help
https://web.archive.org/web/20121010000427/http://browserland.com/how-to/how-to-assign-keywords-to-bookmarks-in-firefox/
But with this solution you cannot use CTRL,cmd etc.., I hope this is the closest solution to this problem!!!
Solution 2:
I've found a pretty neat solution for this issue. All you need is Keyconfig (detailed Infos in this thread) which allows you to (re)bind Firefox Shortcuts.
Follow those easy steps:
- Add your Bookmark
- Edit your Bookmark and add an keyword in the keyword field
- Close Firefox
- Depending on your OS open the file
prefs.js
:- OSX:
/Users/YOURUSER/Library/Application Support/Firefox/Profiles/RANDOMVALUE.default/prefs.js
- Windows:
%APPDATA%\Mozilla\Firefox\Profiles\profile_name\prefs.js
- Linux:
~/.mozilla/firefox/*.default/prefs.js
- OSX:
- Add:
user_pref("keyconfig.main.xxx_key__Keyword 1", "!][][][if(window.loadURI) loadURI(getShortcutOrURI('**YOUR_BOOKMARKLET_KEYWORD**',{}));");
- Open Firefox and go to Extras > Edit Shortcuts (make sure to select 'Keyconfig' in the selectbox above, if you don't, you would edit the shortcuts just for a particular site)
- Assign the shortcut of your choice and save.
- Restart. You're done.
Comment: I know that some would point out that instead of editing the prefs.js directly you better should add an user.js in the mentioned directory. But when I customized the user.js, I had the problem that after every restart, the shortcut needed to be reassigned. So I ended up editing the prefs.js directly (which shouldn't be a problem anyway).