Adblock (Tijuslemon)

Block ads after start browser

От 22.01.2025. Виж последната версия.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

// ==UserScript==
// @name         Adblock (Tijuslemon)
// @namespace    http://violenmonkey.net/
// @version      1.0.1
// @description  Block ads after start browser
// @author       Tijuslemon
// @license      Copyright-tijuslemon
// @match        *://*/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    const tijuslemon = [
        'script[src*="pagead2.googlesyndication.com"]',
        'ins.adsbygoogle',
        'script[src*="securepubads.g.doubleclick.net"]',
        'div[id^="div-gpt-ad"]',
        'center > script[src*="googlesyndication.com"]',
        'center > ins.adsbygoogle',
        'iframe[src*="ads"]',
        'iframe[src*="doubleclick"]',
        'iframe[src*="cryptocoinsad.com"]',
        'iframe[src*="trk.cases.gg"]',
        'iframe[src*="ad.a-ads.com"]',
        'iframe[src*="fpadserver.com"]',
        'ins[class*="657b2a5372c32bcace716bc7"]',
        'ins[class*="663a063927cab6420bf09263"]',
        'affiliate',
        'a[href*="trk.cases.gg"]',
        'img[src*="-5084989207289638116_120.jpg"]',
        'div[id="banner-container"]',
        'div[class="banner30"]',
        'div[class="banner30"] iframe',
        'div[class="ads"]',
        'ins[class*="6295f53eb2e2b443b6100720"]',
        'script[src*="coinzillatag.com"]',
        'div[class="coinzilla"]',
        'script[src*="coinzillatag.com/lib/display.js"]',
        'script[src*="appsha-lon2.cointraffic.io"]',
        'script[src*="coinzillatag.com/lib/fp.js"]',
        '[id^="ad-"]',
        '[class^="ad-"]',
        '[id*="ads"]',
        '[class*="ads"]',
        '[id*="banner"]',
        '[class*="banner"]',
        '[id*="sponsored"]',
        '[class*="sponsored"]',
        '[class*="popup-ad"]',
        '[id*="popup-ad"]',
        '[class*="sticky-ad"]',
        '[id*="sticky-ad"]',
        '[id*="promo"]',
        '[class*="promo"]',
        'div[data-ad]',
        'section[data-ad]',
        'aside[data-ad]',
        'script[src*="adsbygoogle.js"]',
        'ins[data-ad-client="ca-pub-5543899617659266"]',
        'center > script[src*="googlesyndication.com"]',
        'center > ins[data-ad-client]',
        'form#verification-form',
        'script[type="5f2929648a8e931cc508ef2d-text/javascript"]',
        'div[class*="slide-down-ad"]',
        'div[class*="floating-banner"]',
        'div[class*="top-banner"]',
        '[id*="top-ad"]',
        '[class*="scrolling-ad"]',
        'div[class="ads"] center script[type="b4898b6ee057a1e676b80990-text/javascript"]',
        'span[id^="ct_cJTP2jOh3nU"]',
        'iframe[src*="cryptocoinsad.com"]',
        'script[src*="infantilecombination.com"]',
        'iframe[src*="cryptocoinsad.com/ads/show.php"]',
        'iframe[src*="fpadserver.com/banner"]',
        'script[src*="sweetalert2@11"]',
        'script[src*="appsha-pnd.ctengine.io/js/script.js"]',
        'script[src*="adoto.net/dashboard/display/items.php"]',
        'script[src*="static.surfe.pro/js/net.js"]',
        'script[src*="sweetalert2@11"]',
        'ins[class*="672213f851ecd31715dba5fe"]',
        'ins[class*="670e06d690d2d639609ac126"]',
        'ins[class*="670e0604207e0b3e24b57c03"]',
        'iframe[src*="https://cryptocoinsad.com/ads/show.php?"]',
        '[class*="banner30"]',
        'iframe[src*="fpadserver.com/banner?id="]',
        'iframe[src*="cryptocoinsad.com"]',
        '#revbid-mobile-533',
        'script[src*="pemsrv.com/popunder1000.js"]',
        'script[src*="js.wpadmngr.com/static/adManager.js"]',
        'div[id="revbid-square-2628"]',
        'script[src*="prebid.revbid.net"]',
        'script[src*="cryptocoinsad.com/ads/js/popunder.js"]',
        'iframe[src*="cryptocoinsad.com/ads/show.php?a=256518&b=399183"]',
        'iframe[src*="cryptocoinsad.com/ads/show.php?a=256518&b=397275"]',
        'iframe[src*="cryptocoinsad.com/ads/show.php?a=256518&b=397276"]',
        'script[src*="cimtaiphos.com/401"]',
        'script[src*="shebudriftaiter.net/tag.min.js"]',
        'iframe[src*="api.fpadserver.com/banner?id=9499"]',
        
        // Menambahkan elemen iklan baru
        'div.ads',
        'ins.surfe-be',
        'ins[class^="67612"]',
        'script[src*="pubfig.min.js"]',
        'link[href*="pub.network"]',
        'link[href*="cls.css"]',
        'script[src*="ctengine.io"]',
        'span.lebox[data-id="2"]',
        'span.lebox[data-id="1"]',
        'span[id="ct_ctlka4nb20G"]',
        'ins.surfe-be[data-sid="402709"]',
        'script[src*="ctengine.io"]',
        'span.lebox[data-id="6"]', 
        'iframe[src*="zerads.com"]',
        'script[id="lebox-remote"]',
    ];
    
    function removeAds() {
        tijuslemon.forEach(selector => {
            const ads = document.querySelectorAll(selector);
            ads.forEach(ad => ad.remove());
        });
    }
    
    function observeMutations() {
        const observer = new MutationObserver(() => removeAds());
        observer.observe(document.documentElement, { 
            childList: true, 
            subtree: true 
        });
    }
    
    function blockAdDetection() {
        const scriptElements = document.querySelectorAll('script');
        scriptElements.forEach(script => {
            if (script.src && script.src.includes('sweetalert2@11')) {
                script.remove();
            }
        });
    }

    removeAds();
    blockAdDetection();

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', () => {
            removeAds();
            observeMutations();
            blockAdDetection();
        });
    } else {
        removeAds();
        observeMutations();
        blockAdDetection();
    }
})();