RapidLeech Popup Skipper

Attempts to bypass the ad popup window on RapidLeech-based sites

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         RapidLeech Popup Skipper
// @namespace    pk.qwerty12
// @version      0.1
// @author       qwerty12
// @description  Attempts to bypass the ad popup window on RapidLeech-based sites
// @include      *
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function () {
    'use strict';
    document.addEventListener("DOMContentLoaded", function() {
        var tload = document.forms['transload'];
        if (tload && document.documentElement.textContent.toLowerCase().indexOf('leech') > -1)
        {
            var btn = document.getElementsByName('btnTransload');
            if (btn && btn[0])
                btn[0].parentNode.removeChild(btn[0]);

            btn = tload.elements;
            for (var i = 0; i < btn.length; ++i) {
                var type = btn[i].type;
                if (type === 'button' || type === 'submit')
                    btn[i].parentNode.removeChild(btn[i]);
            }

            btn = document.createElement('div');
            btn.style.border = '6px lime solid';
            btn.style.width = '200px';

            var hackedbtn = document.createElement('input');
            hackedbtn.style.font = '180% arial';
            hackedbtn.style.letterSpacing = '-.05em';
            hackedbtn.style.width = '200px';
            hackedbtn.style.height = '50px';
            hackedbtn.type = 'button';
            hackedbtn.value = 'Bypass!!';
            hackedbtn.addEventListener('click', function() {
                tload.submit();
            }, false);

            btn.appendChild(hackedbtn);
            tload.appendChild(btn);
        }
    });
}());