• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Firefox addon.

ruby

[span="howdy;partner"][/span]
1,390
Posts
20
Years
    • Seen Mar 27, 2024
    I've managed to make my own JavaScript to define the word currently selected.
    Code:
    javascript:void(location.href='https://www.google.co.uk/search?q='+'define:%20'+document.getSelection())
    Does anyone here know how I can turn this into a right click option in Firefox?
     

    XaRhS

    Guest
    0
    Posts
    Lol no clue, but i bet it will be extremely difficult to do....
     

    ruby

    [span="howdy;partner"][/span]
    1,390
    Posts
    20
    Years
    • Seen Mar 27, 2024
    @XaRhS
    Firefox addons are only java applets, it wouldn't be too difficult at all.
    I just don't know how to do it myself.. xD

    @Shinjiro
    Nah, that's web page specific; It'd only work if every page had that code. :/

    Thanks anyway though. :]
     
    1,325
    Posts
    15
    Years
    • Age 34
    • Seen Jul 17, 2012
    I decided to give it a shot. I found some useful resources that you can use, should you decide to make your own. I made an extension that will define the currently selected word and open it in a new tab.
    Here's how to install it:

    1. Go to where you downloaded it
    2. Change the .zip to .xpi
    3. Go to Tools->Add-ons
    4. Drag the file into the Add-ons window
    5. Allow the add-on to install
    6. Restart Firefox
    Now, all you have to do is select a word, right click, and select "Define Selected".

    Here are some of the resources I used:
    https://www.rietta.com/firefox/Tutorial/
    https://developer.mozilla.org/en/
    https://kb.mozillazine.org/

    This is my first attempt at a Firefox extension. Should you have any issues with it, please let me know. I'll see what I can do. I had to change the extension because the forum won't allow .xpi (Note: Firefox extensions are actually ZIP files, anyway)

    Edit: Whoops...forgot to add how to change the file extension.
    Assuming you have never had to change an extension, Windows will hide known file extensions. Setting it to show them is quite easy. Here's how (using the Classic Control Panel view):

    1. Go to the Control Panel (Start->Control Panel)
    2. Double-click on Folder Options
    3. Go to the View tab
    4. Uncheck "Hide Extensions for Known File Types"
    5. Click OK
    After that, it will show all file extensions. You will then be able to do step 2 in the installation instructions.

    Also, note that, while I do believe that this add-on is perfectly safe to install, you are doing so at your own risk. I take no responsibility whatsoever if this extension (some how) messes anything up. I've been testing it a lot, and it appears to be functioning perfectly, so there should be no need to worry.
     
    Last edited:
    Back
    Top