spidhrum

Untitled

Dec 14th, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 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
  6. // @match *://*/
  7. // @match https://www.margonem.pl/?task=*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. !function(_parseInput) {
  12. var idleTime = 0;
  13. var firstTime = true;
  14. parseInput = function(a, b, c) {
  15. _parseInput(a, b, c);
  16. if (firstTime) {
  17. setInterval(function() {
  18. idleTime++;
  19. if (idleTime > 5) {
  20. idleTime = 0;
  21. window.location.reload();
  22. }
  23. }, 1000);
  24. firstTime = false;
  25. }
  26. idleTime = 0;
  27. }
  28. }(parseInput)
Add Comment
Please, Sign In to add comment