您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blocks Ads and the Premium, Adblock & Bandwidth Popup on Scrolller.com
- // ==UserScript==
- // @name Scrolller.com Adblocker
- // @name:de Scrolller.com Werbeblocker
- // @version 1.0.5
- // @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 none
- // ==/UserScript==
- (function () {
- 'use strict';
- const s = document.createElement("style");
- s.innerHTML = `.popup:has(#recommendations__popup) {
- display: none;
- }
- /* General: Anti-Adblock Popup */
- .popup:has(svg[width=80]) {
- display: none;
- }
- /* General: Premium Popup */
- .popup:has(img[src*=cat]) {
- display: none;
- }
- /* Feed: Bandwidth Popup */
- .popup:has([class^=_description]) {
- display: none;
- }
- /* Feed: Upgrade for the Ultimate Experience! Popup */
- .popup:has([class^=body_description]) {
- display: none;
- }
- /* Feed: Inline Ads */
- [class^=verticalView_container] a[aria-label='Ad Link'] {
- visibility: hidden;
- }
- /* Feed: Inline Ads */
- main div:has(>div>div>iframe), [class^=verticalView_container] div:has(>div>div>iframe) {
- visibility: hidden;
- }
- /* Post: Banner Ad */
- #fullscreen-view a[class^=FullscreenView_adLink] {
- display: none;
- }
- /* Post: Right Bottom Corner Circle Ad */
- #fullscreen-view button:has(>div>img[src^='/assets/fullscreen']) {
- display: none;
- }
- /* Legacy */
- .popup:has([class^=PremiumCTAPopup]) {
- display: none;
- }`;
- document.head.append(s);
- const old_window_top_fetch = window.top.fetch;
- window.top.fetch = function () {
- if (arguments[1] && arguments[1].body && arguments[1].body.indexOf("AffiliateQuery") != -1) {
- return;
- }
- return old_window_top_fetch.apply(this, arguments);
- };
- })();