Pastebin

Paste #26146: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

// Stop all setInterval and setTimeout functions
(function() {
    const originalSetInterval = window.setInterval;
    const originalSetTimeout = window.setTimeout;

    window.setInterval = function(callback, delay) {
        if (typeof callback === 'function' && callback.toString().includes('location.reload')) {
            console.warn('Auto-refresh blocked: ', callback);
            return;
        }
        return originalSetInterval(callback, delay);
    };

    window.setTimeout = function(callback, delay) {
        if (typeof callback === 'function' && callback.toString().includes('location.reload')) {
            console.warn('Auto-refresh blocked: ', callback);
            return;
        }
        return originalSetTimeout(callback, delay);
    };
})();

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.