jon parise // monday, december 18, 2017

Mozilla Stuff

Bookmark Tricks link

Mozilla allows to use JavaScript for bookmark locations. This allows you to script a popup window that can query for an input string (e.g. search criteria) which will be applied to the target URL.

To use one of the following, create a new bookmark and paste the JavaScript text (all on one line) into the Location: field.

Dictionary.com Lookup
javascript:q=document.getSelection();if(!q)void(q=prompt('Dictionary Lookup:',''));
if(q)location.href='http://www.dictionary.com/cgi-bin/dict.pl?term='+escape(q)
Thesaurus.com Lookup
javascript:q=document.getSelection();if(!q)void(q=prompt('Thesaurus Lookup:',''));
if(q)location.href='http://www.thesaurus.com/cgi-bin/search?config=roget&words='+escape(q)
IMDB - Title
javascript:q=document.getSelection();if(!q)void(q=prompt('IMDB - Title:',''));
if(q)location.href='http://us.imdb.com/Title?'+escape(q)
IMDB - Person
javascript:q=document.getSelection();if(!q)void(q=prompt('IMDB - Name:',''));
if(q)location.href='http://us.imdb.com/Name?'+escape(q)