I just did this:
Code:
// ==UserScript==
// @(you need an account to see links) Subeta Main Shop Restock Alerter
// @(you need an account to see links)space Restock Alerter
// @include (you need an account to see links)
// @version 1
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
var url = window.location.href.split('=');
var shopId = url[url.length-1];
if (GM_getValue("stock_"+shopId, -1) === -1) {
GM_setValue("stock_"+shopId, $(document.getElementsByTagName('form').length));
setTimeout(function() { window.location.reload(); }, 3000+Math.random()*3000);
} else {
if ($(document.getElementsByTagName('form').length) > GM_getValue("stock_"+shopId)) {
alert("Restock on shop "+shopId);
GM_setValue("stock_"+shopId, $(document.getElementsByTagName('form').length));
} else {
GM_setValue("stock_"+shopId, $(document.getElementsByTagName('form').length));
setTimeout(function() { window.location.reload(); }, 3000+Math.random()*3000);
}
}
It alerts u when it stocks, I edited one I have for neo so I didnt do it from 0, Hope it helps something
---- Info ------
I tested it for a while and It sometimes says it stocked but the message says Restocked x minute ago that means there are already new items but the message still outdate