remove ads

clear site ui

Per 20-05-2023. Zie de nieuwste versie.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name         remove ads
// @namespace    http://removeads.net/
// @version      0.1.16
// @description  clear site ui
// @author       jim
// @include        /https\:\/\/([a-z\.]*\.)?[myjavbay|eporner|footfan|sis001|theporn|av6k|eqpp|bdsmx|vjav|soav|pornlulu].*\..*/
// @exclude        *://*.doubleclick.*/*
// @exclude        *://*advertising*
// @exclude        *://*banner*

// @license MIT
// @run-at document-end
// ==/UserScript==

;(function (withjQuery, remove) {
    "use strict"
    if (window.self !== window.top) {
        return;
    } // end execution if in a frame
    withjQuery(function ($, window) {
        let remove = function (...selectors) {
            for (let n = selectors.length - 1; n > -1; n--) {
                $(selectors[n]).css("border-style", "solid").css("border-color", "red").remove()
                console.log("removed->", selectors[n])
            }
        }
        // Select the node that will be observed for mutations
        let targetNode = document.body;
        // Options for the observer (which mutations to observe)
        let config = {
            childList: true, // 监视node直接子节点的变动
            subtree: true, // 监视node所有后代的变动
            attributes: false, // 监视node属性的变动
            characterData: false, // 监视指定目标节点或子节点树中节点所包含的字符数据的变化。
            attributeOldValue: false // 记录任何有改动的属性的旧值
        };
        // Callback function to execute when mutations are observed
        let callback = function(mutationsList, observer) {
            for(var mutation of mutationsList) {
                if (mutation.type == 'childList') {
                    for(var node of mutation.addedNodes) {
                        if (node.tagName == 'IFRAME') {
                            $(node).remove()
                            console.log("mutation remove->", "iframe")
                        }
                    }
                }
            }
        };
        // Create an observer instance linked to the callback function
        let observer = new MutationObserver(callback);
        // Start observing the target node for configured mutations
        observer.observe(targetNode, config);

        $(window).change(function () {
            remove("iframe")
            console.log("window change remove->", "iframe")
        })
        $(document).change(function () {
            remove("iframe")
            console.log("document change remove->", "iframe")
        })
        $(document).ready(function () {
            remove("iframe")
            console.log("document ready remove->", "iframe")
            if (window.location.href.indexOf("pornlulu") > -1) {
                remove(".row.no-gutters.m-0")
            } else if (window.location.href.indexOf("myjavbay") > -1) {
                remove("#custom_html-12", "#custom_html-18", "#custom_html-19", "#custom_html-2")
            } else if (window.location.href.indexOf("eporner") > -1) {
                remove("#movieplayer-box-adv")
            }
            //sis001
            else if (window.location.href.indexOf("footfan") > -1) {
                remove("#sticky-banner-4672820", ".da", ".form-group.dvplay > div:eq(1)")
            } else if (window.location.href.indexOf("sis001") > -1) {
                //sis001
                remove("#ad_headerbanner", ".ad_text", ".portalbox", "#header")
            } else if (window.location.href.indexOf("theporn") > -1) {
                //theporn

                $(".q-responsive").parent().parent().parent().remove()
                remove("div.c199d26a", ".float-right.right-player-container.col-2")
                setTimeout(function () {
                    $("#gbcs").trigger("click")
                    $(".close").trigger("click")
                    $(".block").trigger("click")
                    remove("#__ds_dp", "#domain_change_dialog")
                }, 3000)
            } else if (window.location.href.indexOf("av6k") > -1) {
                remove("div.frameC > a", "div.frame > a", "#app", "table.links-top2", ".video-img", ".subLink", ".newVideoC>div>a[target='_blank'],p,font,b,.h_30", ".clickadu", ".footlink", ".clickadu")
                $("#header").css({ "padding-top": "0px", "padding-bottom": "0px" })
                $(".menu").css({ "padding-top": "0px", "padding-bottom": "0px" })
            } else if (window.location.href.indexOf("eqpp") > -1) {
                remove("#sticky-banner-4672820", ".da", ".form-group.dvplay > div:eq(1)")
            } else if (window.location.href.indexOf("bdsmx") > -1) {
                remove(".right", "section:contains(Advertisement)")
            } else if (window.location.href.indexOf("vjav") > -1) {
                remove(
                    ".hdyythvtvviieietth",
                    ".vydththeeyy",
                    "section:contains(Advertisement)",
                    ".sinieieyyii",
                    ".eniimeymsywwywyiie",
                    ".iyinsiieieyyii",
                    //'p:contains(Advertisement)',
                )
            }else if(window.location.href.indexOf("soav") > -1){
                remove('.ad.noadmo')
            }
        })
    }, false)

    // Put all your code in your document ready area

    // Your code here...
})(function (callback, safe) {
    if (typeof jQuery == "undefined") {
        let script = document.createElement("script")
        script.type = "text/javascript"
        script.src = "https://code.jquery.com/jquery-3.6.1.min.js"
        if (safe) {
            let cb = document.createElement("script")
            cb.type = "text/javascript"
            cb.textContent = "jQuery.noConflict();(" + callback.toString() + ")(jQuery, window);"
            script.addEventListener("load", function () {
                document.head.appendChild(cb)
            })
        } else {
            let dollar = undefined
            if (typeof $ != "undefined") dollar = $
            script.addEventListener("load", function () {
                jQuery.noConflict()
                // eslint-disable-next-line no-global-assign
                $ = dollar
                callback(jQuery, window)
            })
        }
        document.head.appendChild(script)
    } else {
        setTimeout(function () {
            //Firefox supports
            callback(jQuery, typeof unsafeWindow === "undefined" ? window : unsafeWindow)
        }, 30)
    }
})