Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Refresh and scan data of website, show if within set parameters?

Featured Replies

I'm basically thinking about a tool that could refresh specific webpages such as forum market places and analyse the data in specifically chosen fields, if the data is below a set amount it would present itself in some way (perhaps make a noise or pop up some text) to inform me.

 

For example it could be set to refresh http://forums.zybez....280-nature-rune every 10 minutes, and if it ever sees "Selling (>1000) for (<290)" it would let me know. A very useful merch tool.

 

Do you know if this is possible to create? And what would be the best thing to create it with?

CNqWHdA.jpg

You can paste this into the JavaScript console in chrome:

 

var td;
var q;
var p = "";
tr = document.getElementsByTagName("tr");
for(var i = 0; i < tr.length;i++){
   td = document.getElementsByTagName("td");
   var temp = document.createElement("div");
   temp.innerHTML = td[i].innerHTML;
   var clean = temp.textContent || temp.innerText;
   if(clean.indexOf("Selling") > -1){
       clean = clean.replace("Selling","").replace(",","").replace(" for ","").replace(" GP","").replace("ea","");
       q = clean;
       for(var j = 0; j < 3; j++){
           p += q%10;
           q = Math.floor(q/10);
       }
       p = p.split("").reverse().join("")*1;
       q *= 1;
       if(p <= 290 && q >= 1000){
           alert("Selling " + q + " nature runes for " + p + "GP each.");
           td[i].style.backgroundColor    =    "#F4E23E";
       }
   }
   p = "";
}

Every time you run it, it will search for the offers that match those prices. I'd recommend using this as a foundation for a chrome app.

  • Author

Hi Hedgehog, that's excellent and does exactly what I asked for, I can see how to change the parameters to meet my needs. :)

 

I intend to create an application to run 100's of items automatically separate from the browser, hopefully directly from whatever database zybez uses rather than the actual web pages.

CNqWHdA.jpg

Alright, if you want to build an application to check the prices of multiple items, the JavaScript I posted won't work very well.

If you want to interface directly with their storage (I'm sure they use XML or JSON, I don't think it's worth it for them to use a database for this), you'll have to get in contact with them. Then it's just a matter of downloading, parsing, and presenting the information.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.