Turn Google Into Your Personal Napster With A Bookmarklet

Turn Google Into Your Personal Napster With A Bookmarklet

Last week Lifehacker reader UnMicD offered a simple bookmarklet for searching Craigslist. Over at the Productive Geek forums, user Brady modified that bookmarklet to search file-sharing site MediaFire. The results: it’s a little like when Napster was good.

To create the bookmarklet (this is how you do it on Firefox — other browsers should be similar), just right-click your bookmarks toolbar, select New Bookmark, and paste the text below into the Location field:

javascript:var searchterms = escape(prompt('Enter Artist and Album'));var query = searchterms + ' site:mediafire.com';window.location='http://www.google.com/search?q=' + query;

You can name the bookmarklet whatever you like. Brady takes it a step further and assigned it a nice favicon using the Favicon Picker Firefox extension (which means you can skip naming your bookmarklet altogether). Once it’s all set up, just click the bookmarklet, enter your search terms, and see what you come up with.

This is by no means a new idea, of course — some folks have been using Google as their personal Napster for years (see number three).

Use This Bookmarklet to Easily Get Albums [Productive Geek]


  • I made some mods to this script so that it will search any site.

    Same rules apply on how to implement it, now it will do a google search on any URL you are at.

    javascript:var searchterms = escape(prompt(‘Enter Show’));var query = searchterms + ‘ site:’+location.hostname;window.location=’http://www.google.com/search?q=’ + query;


Log in to comment on this story!