Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var deltatime = 24 * 60 * 60; // 24h
- var last = GM_getValue("lastcheck", new Date().getTime() / 1000);
- if (new Date().getTime() / 1000 - last > deltatime) {
- checkUpdates();
- GM_setValue("lastcheck", Math.round(new Date().getTime() / 1000));
- }
Add Comment
Please, Sign In to add comment