Greasy Fork

Shined up real nice.

Greasy Fork is available in English.

Anti-Adblock Killer for overclockers.ru

Don't touch my Adblocker!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ==UserScript==
// @name         Anti-Adblock Killer for overclockers.ru
// @namespace    FIX
// @version      0.14
// @description  Don't touch my Adblocker!
// @author       raletag
// @include      *://overclockers.ru/*
// @include      *://*.overclockers.ru/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    function AAK () {
        var MO = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
        if (!MO) {
            alert('ENG: Anti-Adblock Killer for overclockers.ru is not supported in this browser! \nRUS: Anti-Adblock Killer for overclockers.ru не поддерживается в данном браузере!');
            return;
        }
        new MO(function (ms) {
            var m, n;
            for (m of ms) {
                for (n of m.addedNodes) {
                    if (n.nodeType === Node.ELEMENT_NODE && n.tagName === 'SCRIPT' && /adblock/i.test(n.innerHTML)) {
                        n.innerHTML  = n.innerHTML.replace(/\$(.*)["']body["'](.*);/ig,'');
                        console.log('Anti-Adblock killed');
                    }
                }
            }
        }).observe(document, {childList:true, subtree:true});
    }
    var scr = document.createElement('script'),
        meta = document.createElement('meta');
    meta.httpEquiv = 'Cache-Control';
    meta.content = 'max-age=1, must-revalidate';
    scr.textContent = '(' + AAK.toString() + ')();';
    (document.documentElement||document).appendChild(meta);
    (document.documentElement||document).appendChild(scr);
})();