Advertisement
Guest User

Untitled

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