Simple PageRank User Script

This is a RePost after we lost some stories from our db.

As an avid user of the Opera browser, one of my long time difficulties has been the lack of a Google Toolbar. Frankly, the only thing I am interested in on that toolbar is to see the TBPR (toolbar PR). So, without further adieu, here is a simple UserScript for seeing the PageRank. This will drop a little image in the upper left of each page you visit with the PageRank. When you mouse over the image, it disappears so you can get to any of the navigation that might be blocked by the image.

// ==UserScript==<br />
// @name PR for Opera<br />
// @description Shows PageRank for Opera in Right Hand Corner. Disappears when you mouse over it.<br />
// ==/UserScript==<br />
if(parent.frames.length == 0) {</p>
<p> var imgURL = "http://72.14.182.211/pr.php?user=opera&amp;url="+location.href;</p>
<p> var operaprimg = document.createElement('img');<br />
operaprimg.setAttribute("src",imgURL);<br />
operaprimg.setAttribute("id","operaPRimg");<br />
operaprimg.setAttribute("onMouseOver","this.style.display='none';");<br />
operaprimg.setAttribute("style","border-width:1px;border-color:#000;border-style:solid;position:absolute;z-index:100;left:3px;top:3px;");</p>
<p> document.body.appendChild(operaprimg);</p>
<p> var oprobj = document.getElementById('operaPRimg');<br />
oprobj.style.position='absolute';<br />
oprobj.style.zIndex='100';<br />
oprobj.style.left='3px';<br />
oprobj.style.top='3px';</p>
<p>}

Submit a Comment

Your email address will not be published. Required fields are marked *