Post date: Apr 6, 2015 3:23:25 PM
Some of my favorites are the ones that do something with selected text.
Select a text on any web page and translate it or do a wiki search on it.
This translates to afrikaans:
javascript:(function(){l=location.href;if(l.indexOf('translate')){l=decodeURIComponent(l.replace(/^.*[&?](trurl|url|u)=/,'').replace(/[&?].*$/,''))};s=document.selection?document.selection.createRange().text:window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():'';location.href=(s=='')?'http://translate.google.com/translate?u='+encodeURIComponent(l)+'&sl=auto&tl=af&anno=0':'http://translate.google.com/translate_t?text='+s+'&sl=auto&tl=af';})()
Lets see if you are smart enough to set it to a different language.
This does a wiki search:
javascript: s = document.getSelection(); for (i = 0; i < frames.length; i++) { if (s) break; s = frames[i].document.getSelection(); } if (!s) void(s = prompt('Enter search terms for Wikipedia', '')); wikiw = open('http://en.wikipedia.org/' + (s ? 'w/wiki.phtml?search=' + escape(s) : '')); wikiw.focus();