The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Entertainment & Hobbies > Technology & Internet
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

Technology & Internet Where would we be without the iPhone or YouTube? Anything related to technology or the Internet goes in this board.



Reply
Thread Tools
  #1  
Unread February 4th, 2009, 10:19 PM
Counterfeit's Avatar
Counterfeit
 
 
Join Date: Mar 2004
Age: 20
Send a message via Skype™ to Counterfeit
I've managed to make my own JavaScript to define the word currently selected.
Code:
javascript:void(location.href='http://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?
__________________
eram quod es, eris quod sum
Reply With Quote
  #2  
Unread February 10th, 2009, 10:55 AM
XaRhS
Guest
 
Lol no clue, but i bet it will be extremely difficult to do....
Reply With Quote
  #3  
Unread February 10th, 2009, 12:41 PM
Zet's Avatar
Zet
→I'm back
 
Join Date: Sep 2007
Location: Brisbane, Australia
Age: 23
Gender: Male
Nature: Jolly
I found this in google, but not sure how much of a help it will be http://javascript.internet.com/page-...lick-menu.html
Reply With Quote
  #4  
Unread February 10th, 2009, 02:47 PM
Counterfeit's Avatar
Counterfeit
 
 
Join Date: Mar 2004
Age: 20
Send a message via Skype™ to Counterfeit
@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. :]
__________________
eram quod es, eris quod sum
Reply With Quote
  #5  
Unread February 14th, 2009, 11:16 PM
X-626
Donator Tier 5
 
Join Date: Jan 2009
Age: 23
Gender: Male
Nature: Timid
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:
http://www.rietta.com/firefox/Tutorial/
https://developer.mozilla.org/en/
http://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.
Attached Files
File Type: zip define.zip‎ (1.9 KB, 2 views)

Last edited by X-626; February 15th, 2009 at 12:03 AM. Reason: Forgot to add how to change the file extension
Reply With Quote
Reply
Quick Reply

Sponsored Links


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC. The time now is 06:33 PM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.