2

I am looking for a browser extension (Chrome if possible) to spot bind clicking on an item of the page to a keyboard shortcut.

E.g. when browsing a thread on Stack Exchange, I would like to bind the shortcut Ctrl + U to the upvote button for the question:

Upvote button for a question on Software Recommendations SE

I am aware of Sikuli but:

  • it is awkward to condition a Sikuli script so that the shortcut is website-dependent
  • element detection in images is a bit slow (~ one second)
  • if I have the element to be detected in multiple location (either different monitors or on the same webpage), it would make the Sikuli script even more complex
| improve this question | | | | |
  • 1
    Maybe a workaround. Try Conkeror web browser. It maps all clickable links on a page to numbers. You can hit f to show the numbers and type the corresponding one. If the upvote shortcut is consistent on all pages, then you can map it to Ctrl+U with AutoHotKey – Tymric Oct 18 '14 at 13:50
  • 2
    @Timmy Thanks, this reminds me that I had forgotten to mention the existence of the mouseless browsing add-ons (e.g. addons.mozilla.org/en-us/firefox/addon/mouseless-browsing/…) that assign number for each clickable links present in the page. On Conkeror, no number is assigned to the upvote/downvote button :/ (i.stack.imgur.com/qkDOc.png) but otherwise it can be good to have it around, thanks for the suggestion! – Franck Dernoncourt Oct 18 '14 at 18:58
2

A shortcut already exists in Stack Exchange.

In your profile page, under Preferences, enable Keyboard Shortcuts

enter image description here

Pressing ? to show the help menu reveals:

enter image description here

The shortcut for voting up is V U:

enter image description here

If it's more convenient to use Ctrl+U, then it can be mapped using an AutoHotKey command:

^u::Send vu
| improve this answer | | | | |
  • 1
    Thanks, that's good to know! However I'm looking for a solution that works for most websites, StackExchange was just one example :-) – Franck Dernoncourt Oct 18 '14 at 19:18
  • @FranckDernoncourt I see. But since it's not recognized as a link, I doubt that such a global solution exists. Different websites most likely have different implementations and different shortcuts (if any). I could remove the answer if it's invalid for the scope of your question? – Tymric Oct 18 '14 at 19:25
  • 1
    Let's keep the answer, still useful! I was hoping to find some add-ons that could detect a bit more actionable items than just links. – Franck Dernoncourt Oct 18 '14 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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