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'd like to be able to define my own keyboard shortcuts for websites that doesn't provide them. I was wondering if there's any firefox add-on/userscript to enable generic keyboard shortcuts.

Here is a simple use case: I use google translate daily translating between Hebrew & English, and often need to switch between English->Hebrew and vice versa using my mouse. Ideally, I could inspect the DOM, pick the button I need and define a keyboard shortcut to use on this page.

Anything similar to that might exist?

EDIT: that concrete google translate example is now obsolete as google solved it with auto language detection, but the use case remains the same.

share|improve this question

1 Answer 1

Use the GreaseMonkey Firefox extension and create a custom script to add accesskey attributes to the links you want to click.

With this you can hold down alt+shift+your access key (on windows) or control+ your access key on mac to hit the link.

There are many scripts on userscripts.org which you can use to help write your script. Perhaps use the source of a script for adding Google search result navigation as a guide

share|improve this answer

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.