7is7.com > Bookmarklets > Google PageRank
Bookmarklet Gears

Google PageRank Bookmarklet

Updated 2011-10-06 with Google's new Pagerank URL. Update both your bookmarklet and userscript for the change to take effect.

Why another PageRank checker?

The currently available solutions have two drawbacks:

  1. Toolbars and addons show you the PageRank of every page you are visiting. In order to do this, a request is sent to Google for every page. As a result Google's log will contain every page you ever visited. That's a privacy concern that could be solved by asking the PageRank only for pages that you are actually interested in.
  2. Online PageRank tools rely on a third party that will act as a go between to calculate the hash value (see below). These services are sometimes unreliable and they often cease to work because Google does not allow automated queries. If we ask Google directly for the PageRank we no longer need a third party but then we need to calculate the hash value ourselves.

The Google PageRank checker bookmarklet presented on this page (and the optional userscript for Greasemonkey) are an attempt to solve these issues. You cannot simply ask Google for the PageRank of a page, you need to calculate a hash value of the URL that you want to check. Thanks to some enterprising people it was discovered that the hash function Google uses is in the public domain. The bookmarklet includes a JavaScript implementation of this function.

The JavaScript Bookmarklet

To install the bookmarklet (below) simply drag it to your bookmarks or "right-click" on the link and save it as a bookmark (or add to favorites). You can then execute the bookmarklet when visiting a page, by clicking on the bookmark.

Beautifying the result with a Greasemonkey userscript

The results shown by the bookmarklet, do not look very nice, a page with PageRank 4 will give us Rank_1:1:4, while a page without PageRank is simply blank. The bookmarklet cannot change the appearance of the result as a script is not allowed to change pages on other sites for obvious security reasons. However the Greasemonkey userscript (below) will beautify those responses and transform it into a standard looking Google PageRank bar. You'll need to use Firefox with the Greasemonkey addon and if you do just click on the link below to install the userscript.

These two screenshots show the output of the Google PageRank bookmarklet with and without the PageRank Beautifier userscript:

PageRank without beautification
PageRank with beautifier userscript



So there you have it, unlike other PageRank bookmarklets, this bookmarklet does not depend on any third party to work, everything is taken directly from Google's servers and unlike toolbars or addons not all of your activities are logged by Google. Enjoy!


Google+ icon Facebook icon LinkedIn icon Twitter icon del.icio.us icon StumbleUpon icon Spurl icon Blinklist icon LinkaGoGo icon Google icon Flattr icon

For feedback or bug reports: contact me by E-mail

Get Firefox! Download LibreOffice Use Fedora