When I right-click on the highlighted text in Firefox, it shows an option "Search "text" with Google". Is it possible to set this option on key shortcut?


All of the solutions I've found require some sort of addon, but in my opinion, the least invasive method involves using keyconfig.

To set it up:

  1. Install Keyconfig (through the link, I don't believe it can be installed from Get Addons)
  2. Open Keyconfig (via options in Extensions) and add a new key. Call it "Search selected text" or something you can identify, and put the following in the the code section:

    var selectedText = getBrowserSelection();
    if (selectedText) {BrowserSearch.loadSearchFromContext(selectedText);}

Hit okay, then find your key in the list and assign it whatever shortcut you'd like by clicking the box next to "apply" and pressing your key combination.

Source: instructions from "Add Search for Selectin into Edit menu" addon

| improve this answer | |
  • @Roman If you find an answer useful, you should upvote or accept the answer. That's the green checkmark at the left – nixda Jul 2 '15 at 18:30
  • No problem, glad I could help! Learned a bit more about Firefox myself by looking up a solution :) – Krixvar Jul 2 '15 at 18:36

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.