Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Open Wikipedia Topic from Script Menu' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open Wikipedia Topic from Script Menu
Authored by: vaughnsc on Jun 01, '07 09:58:34AM
Yet another skinless cat with a nice touch:

I prefer the 'javascript in the bookmark bar' methodology and adapted the following Javascript lifted (in all fairness) from the Spanish Dictionary at rae.es - it has a twist: it can display a query dialog as expected, but will skip it if you've already highlighted (selected) a term in the frontmost browser window (useful when dealing with long phrases or convoluted, unfamiliar spelling):

javascript:Qr=window.getSelection();if(!Qr||Qr==''){void(Qr=prompt('Search%20Wikipedia%20for:',''))}if(Qr)location.href='http://en.wikipedia.org/wiki/'+escape(Qr)


Naturally, if you wish to direct the query to a non-English version of Wikipedia, it is a simple matter of tweaking the URL. You may also want to consider the previous comment of using WP's 'search' url instead of the less-forgiving 'article' URL.

[ Reply to This | # ]