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]


Comments

    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;

    Enjoy.

      You're better off using quick search functionality than using javascript imho. Add a shortcut to:

      http://www.google.com/search?q=%s%20site:mediafire.com

      in firefox or chrome.
      Now add a keyword - like ms for media search.

      Now in your address bar simply type:
      ms
      and off it goes to search.

      You can do this with any search engine really - just put %s where you want your text to appear.

Join the discussion!

Trending Stories Right Now