Tuesday, November 8, 2011

IE7Pro Google PageRank broken and solved

Google changed the lookup URL for the PageRank value for more than a month ago and that broke the IE7Pro Alexa rank/google pagerank plugin (searchstatus) that makes it possible to see Google PageRank in the status bar of Internet Explorer. Even though the name indicates something else IE7Pro does work in IE8 and IE9 too.

Old PageRank URL:
http://toolbarqueries.google.com/search?client=navclient-auto&features=Rank&ch=8f3b58e04&q=info:[URLHERE]
New PageRank URL:
http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=8f3b58e04&q=info:[URLHERE]
The solution it to edit …\IEPro\plugins\searchstatus\plugin.js like this and Google PageRank work again.
Old code:
queryurl = "http://toolbarqueries.google.com/search?client=navclient-auto&ch=" + mGoogleCH + "&ie=UTF-8&oe=UTF-8&features=Rank&q=" + reqgre;
New code:
queryurl = "http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=" + mGoogleCH + "&ie=UTF-8&oe=UTF-8&features=Rank&q=" + reqgre;

The Alexa rank has since been broken and only show 0 so the plugin.js needs to be edited.
Change the regex parsing of the xml result like this:
Change from
var re = /POPULARITY.*TEXT=\"(\d+)\"\/\>/i;
to
var re = /POPULARITY.*TEXT=\"(\d+)\"/i;

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner