Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Magma Pool
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://www.neopets.com/magma/pool.phtml
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- function reloadMagma() {
- location.reload();
- }
- if (document.body.innerHTML.search("guard is sleeping") > -1) {
- var time = document.getElementById("nst").innerHTML;
- alert(time);
- } else {
- // Fire every 3 minutes
- setTimeout(reloadMagma, 180000);
- }
Add Comment
Please, Sign In to add comment