Scrolller.com Adblocker

Blocks Ads and the Premium, Adblock & Bandwidth Popup on Scrolller.com

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name            Scrolller.com Adblocker
// @name:de         Scrolller.com Werbeblocker
// @version         1.0.7
// @description     Blocks Ads and the Premium, Adblock & Bandwidth Popup on Scrolller.com
// @description:de  Blockiert Werbung und das Premium, Adblock & Bandwith Popup auf Scrolller.com
// @icon            https://scrolller.com/assets/favicon-16x16.png
// @author          TalkLounge (https://github.com/TalkLounge)
// @namespace       https://github.com/TalkLounge/scrolller.com-adblocker
// @license         MIT
// @match           https://scrolller.com/*
// @grant           GM_addStyle
// ==/UserScript==

(function () {
    'use strict';

    GM_addStyle(`
    /* General: Popup: Wish Scrolller Was Ad-Free? */
    .popup:has(img[src*=cat]) {
        display: none;
    }

    /* General: Popup: Support Scrolller - Explore More Content! */
    .popup:has([class*=ctaButton]) {
        display: none;
    }

    /* General: Header Button */
    [class*=desktopAdSessionButton] {
        display: none;
    }

    /* Feed: Banner Ad Links */
    [class*=content]>a[class*=highlight] {
        display: none;
    }

    /* Feed: Inline Scrolller Ads */
    [class*=galleryItemHandler]:has([class*=nativeAd]) {
        visibility: hidden;
    }

    /* Feed: Inline External Ads */
    [class*=galleryItemHandler]:has([class*=iframeAdContainer]) {
        visibility: hidden;
    }

    /* Feed: Right Bottom Corner Circle Ad */
    button:has([class*=liveCircle]) {
        display: none;
    }

    /* Post: Banner Ad Link */
    #fullscreen-view [class*=topBanner] a[class*=adLink] {
        display: none;
    }`);
})();