Guest User

Magma Pool

a guest
Mar 27th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment