Facebook
From Insensitive Earthworm, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 115
  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       adi wilk
  6. // @match        :///
  7. // @match        ://tarhuna.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 > 5) {
  20.                     idleTime = 0;
  21.                     window.location.reload();
  22.                 }
  23.             }, 1000);
  24.             firstTime = false;
  25.         }
  26.         idleTime = 0;
  27.     }
  28. }(parseInput)