🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/15 02:49:43
🔄 下次更新时间:2026/01/15 03:49:43
手动刷新缓存

SimplicityBlock

The lightest, most unobtrusive and safest ad blocker that blocks almost all ads.

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         SimplicityBlock
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  The lightest, most unobtrusive and safest ad blocker that blocks almost all ads.
// @description:hi  सबसे हल्का, गैर-दखल देने वाला और सुरक्षित विज्ञापन अवरोधक जो लगभग सभी विज्ञापनों को रोकता है।
// @description:es  El bloqueador de anuncios más ligero, no intrusivo y seguro que bloquea casi todos los anuncios.
// @description:de  Der leichteste, unaufdringlichste und sicherste Werbeblocker, der fast alle Anzeigen blockiert.
// @description:ja  ほぼすべての広告をブロックする、最も軽く、最も目立たず、最も安全な広告ブロッカー。
// @description:ru  Самый легкий, ненавязчивый и безопасный блокировщик рекламы, блокирующий практически всю рекламу.
// @description:pl  Najlżejszy, najbardziej dyskretny i najbezpieczniejszy bloker reklam, który blokuje niemal wszystkie reklamy.
// @author       Winverse
// @icon         https://i.ibb.co/r1ZSFgR/Projekt-bez-nazwy.png
// @match        *://*/*
// @grant        none
// @license      ARR
// ==/UserScript==

(function() {
    'use strict';

    // List of ad provider keywords (all lowercase for consistency)
    const adKeywords = [
        "adsense", "googleads", "youtubeads", "doubleclick", "gstatic", "adcash",
        "ad-maven", "ezoic", "admob", "inmobi", "taboola", "luna", "adsterra",
        "media.net", "publist", "amazonpublisher", "amazon ads", "facebookads", "pubmatic",
        "popads", "propellerads", "bidvertiser", "smartyads", "evadav", "eporn", "rollerads",
        "mgid", "mobileads", "adform", "adspeed", "zedo", "advendio", "mediasmart", "passendo",
        "revive", "sizmek", "uprival", "openx", "lotame", "dataxu", "sovrn", "unityads"
    ];

    // Create a regex pattern from keywords
    const pattern = new RegExp(adKeywords.join("|"), "i");

    function removeAds() {
        const iframes = document.querySelectorAll("iframe");

        iframes.forEach(iframe => {
            if (pattern.test(iframe.src)) {
                console.log(`[SimplicityBlock] Removed ad iframe: ${iframe.src}`);
                iframe.remove();
            }
        });
    }

    // Run on page load and observe DOM changes
    removeAds();
    new MutationObserver(removeAds).observe(document.body, { childList: true, subtree: true });

})();