Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Odświeżenie podczas laga.
  3. // @version 1.1
  4. // @description Odświeża Ci margona, jak masz tzw. laga.
  5. // @author adison
  6. // @match http://jaruna.margonem.pl/
  7. // @match http://unia.margonem.pl/
  8. // @match http://pandora.margonem.pl/
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. !function(_parseInput) {
  13. var idleTime = 0;
  14. var firstTime = true;
  15. parseInput = function(a, b, c) {
  16. _parseInput(a, b, c);
  17. if (firstTime) {
  18. setInterval(function() {
  19. idleTime++;
  20. if (idleTime > 5) {
  21. idleTime = 0;
  22. window.location.reload();
  23. }
  24. }, 1000);
  25. firstTime = false;
  26. }
  27. idleTime = 0;
  28. }
  29. }(parseInput)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement