Quantcast

Jump to content


Photo

Bookmarklet for Page Worth


  • Please log in to reply
No replies to this topic

#1 Noitidart

Noitidart
  • Neocodex Co-Founder

  • 23214 posts


Users Awards

Posted 21 February 2010 - 11:44 PM

Ok this is called a Bookmarklet. What it does is: when you are viewing your shop inventory. If you go to your bookmarks and click this it will tell you how much that page is worth. IE: if i had 2 bobble heads priced at 1k it would tell me the page is worth 2k.

So go to bookmarks click add bookmark and then for the url part paste this:
javascript:{var tI=document.body.innerHTML.match(/oldcost_/g).length; var worth =0; for (var ji=1; ji<=tI; ji++){worth+=parseInt(document.getElementsByTagName('form')[2].getElementsByTagName('table')[0].getElementsByTagName('td')[9+((ji-1)*7)].innerHTML.replace('<b>','').replace('</b>',''))*parseInt(document.getElementsByName('cost_'+ji)[0].value);}alert('Page Worth: '+worth+' NP');}

Call it whatever. I call it "NeoPets Bookmarklet - Shop Inventory Page Worth"

I find it useful. You might :p


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users