Guest User

Magma Pool

a guest
Mar 27th, 2016
146
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name Magma Pool
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://www.neopets.com/magma/pool.phtml
  8. // @grant none
  9. // ==/UserScript==
  10. /* jshint -W097 */
  11. 'use strict';
  12.  
  13. function reloadMagma() {
  14. location.reload();
  15. }
  16.  
  17. if (document.body.innerHTML.search("guard is sleeping") > -1) {
  18. var time = document.getElementById("nst").innerHTML;
  19. alert(time);
  20. } else {
  21. // Fire every 3 minutes
  22. setTimeout(reloadMagma, 180000);
  23. }
RAW Paste Data