Tuesday, January 25, 2011

Adding favicon to Firefox bookmarklets on the bookmarks bar

This bookmarklet loads a PubMed search into UCT's e-journal search engine. It also has a favicon using the technique from Restafarian.org » Adding an Icon to Your Bookmarklet. To create the bookmarklet, first create a bookmark on the Firefox bookmark toolbar. Right click the bookmark, select Properties, and change URL to:

Afterwards go to C drive and click on bookmarklet to load the icon. Thereafter you can go to any site (other than C drive) and the bookmarklet will execute the javascript. You can change the icon location to e.g. file:///C:/pub/firefox/favicons/pubmed.ico. The javascript for the actual bookmarklet function can also be changed and is located inside the else {} statement.

No comments:

Post a Comment