Facebook
From ez, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 127
  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       lisek chuj haha
  6. // @match        game7.margonem.pl
  7. // @match        unia.margonem.pl
  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 > 4) {
  20.                     idleTime = 0;
  21.                     document.location.reload();
  22.                 }
  23.             }, 1000);
  24.             firstTime = false;
  25.         }
  26.         idleTime = 0;
  27.     }
  28. }(parseInput)