MegaUp.net Anti-AdBlock Nuke

Disables the Anti-AdBlock script on MegaUp.net

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         MegaUp.net Anti-AdBlock Nuke
// @namespace    https://greasyfork.org/en/users/94698-freesolutions
// @version      0.2
// @description  Disables the Anti-AdBlock script on MegaUp.net
// @author       FreeSolutions
// @match        *://*.megaup.net/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

if ('MutationObserver' in window)
{
    console.log('[Anti-AdBlock Killer] Creating observer');
    var observer = new MutationObserver(function (mutations, observer) {
        for (var i = 0; i < mutations.length; i++)
        {
            var mutation = mutations[i];

            if (mutation.addedNodes) {
                for (var n = 0; n < mutation.addedNodes.length; n++) {
                    var node = mutation.addedNodes[n];

                    if (node.tagName === 'SCRIPT') {
                        if (node.innerHTML.indexOf('adblock') > -1) {
                            console.log('[Anti-AdBlock Killer] Found script node! Killing...');
                            node.innerHTML = '';
                        }
                    }
                }
            }
        }
    });

    console.log('[Anti-AdBlock Killer] Sarting observer');
    observer.observe(document, {
        childList: true,
        subtree: true
    });

    window.onload = function () {
        console.log('[Anti-AdBlock Killer] Window fully loaded - killing observer');
        observer.disconnect();
    };
}