Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Odświeżenie podczas laga.
- // @version 1.4
- // @description odswieza podczas laga(podczas wygasniecia sesji też) i jeszcze usuwa te zolte komunikaty z konsoli
- // @author adison
- // @match *://*/
- // @grant none
- // ==/UserScript==
- ! function(a, b) {
- let e, c = 0,
- d = !0;
- parseInput = function() {
- d && (setInterval(function() {
- c++, 4 < c && (c = 0, document.location.reload())
- }, 1e3), d = !1), c = 0, a.apply(this, arguments)
- }, log = function() {
- if (e = Array.prototype.slice.call(arguments), e[1]) {
- if (-1 < e[0].indexOf("Zapytanie odrzucone") && 1 == e[1]) return; - 1 < e[0].indexOf("Sesja gry wygas\u0142a") && 2 == e[1] && document.location.reload(); - 1 < e[0].indexOf("Przerwa techniczna") && 1 == e[1] && document.location.reload(); - 1 < e[0].indexOf("Bot") && 1 == e[1] && document.location.reload()
- }
- b.apply(this, arguments)
- }
- }(parseInput, log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement