Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Firefox (9.0.1 in Ubuntu 11.10 64-bit) and I'm wondering how to make a shortcut to a certain manipulation of the current URL.

Here's an example to clarify. I'm browsing and I want to go to an URL that is a manipulation of the current URL, namely the URL that is "" with "meta" inserted after "http://", by pressing a certain key combination, e.g. Shift+Alt+M. How can I do this?

I guess this requires two particular things:

  • A device to manipulate the current URL, i.e. a device to insert a certain string into a certain position of the current URL.
  • A device to bind the above procedure to a key combination.

I don't know how to make this happen. Maybe making a bookmark with javascript or use of greasemonkey can achieve it?

share|improve this question

migrated from Sep 5 '11 at 13:16

This question came from our site for Ubuntu users and developers.

First of all, what OS do you use? – Michael K Sep 7 '11 at 10:08
@MichaelK I've updated my question to include what OS I use. – N.N. Sep 7 '11 at 10:10
As far as I know, there is a standard software for keyboard shortcuts in the ubuntu system settings. I don't know if it does what you want to do, but you may want to check it. – Michael K Sep 7 '11 at 10:30
@MichaelK Do you mean gnome-keybinding-properties? There's is no keybinding to what I'm after there. I'm not after something equivalent to Ctrl+L. – N.N. Sep 7 '11 at 12:43
Are you looking for a browser addon, or do you want to bind global macros to your keys? – Michael K Sep 7 '11 at 12:46

One extension that looks like it should work would be keyconfig. It appears like you can easily assign what would be a javascript bookmarklet to a key combination. So all you would have to do is do is come up with a bookmarklet that adjusted the URL.

share|improve this answer
I will look into this. I'm not sure which is best to manipulate with javascript, window.location or location as indicated by the answers of that URL. If I'm successful I might write a full description of what I did as an answer (unless you elaborate your answer into one). – N.N. Sep 8 '11 at 8:02
According to it's not available for Firefox 6.0.2. So this won't do. – N.N. Sep 12 '11 at 18:39
The 'functions-for-keyconfig' addon is not the keyconfig addon I mentioned. It is something else. The correct link for keyconfig can be found on this page. I just installed it on 6.0.2 to verify. – Zoredache Sep 12 '11 at 18:48
Sorry, you're right. I've installed it now but I'm stuck in trying to figure out how to access a bookmarklet from keyconfig. How do I do that? – N.N. Sep 12 '11 at 19:07

Your Answer


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.