Advertisement
Czogista

Menogram wyłączenie autorefresha 2.82/2.8*

Nov 28th, 2020 (edited)
1,680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Menogram wyłączenie autorefresha
  3. // @namespace    http://tampermonkey.net/
  4. // @description  wyłącza automatyczne odświerzanie strony w menogramie(2.82v/2.8*v).
  5. // @author       Czogi
  6. // @supportURL   https://discordapp.com/invite/yYA7AP8
  7. // @match        http://*.margonem.pl/
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. const oldTimeout = setTimeout;
  12. window.setTimeout = (callback, timeout) => {
  13.   if (
  14.     callback
  15.       .toString()
  16.       .includes("sessionStorage")
  17.   ) {
  18.     return (window.setTimeout = oldTimeout);
  19.   }
  20.   return oldTimeout(callback, timeout);
  21. };
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement