屏蔽品葱广告提示userscript脚本


  • 需要先安装tampermonkey浏览器扩展。

    // ==UserScript==
    // @name         Remove pincong ads
    // @namespace    https://tampermonkey.net/
    // @version      0.1
    // @description  移除品葱广告
    // @author       deer
    // @match        https://pincong.rocks/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=pincong.rocks
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        let adblock = document.getElementById("aw-ajax-box");
        if (adblock != null) {
            adblock.remove();
        }
    })();
    

    亲测可用,如果失效请回复。


  • 此userscript只是屏蔽广告提示,不屏蔽广告。屏蔽广告请用uBlock Origin等专门的浏览器扩展。

  • 1
  • 4
  • 1
  • 1
  • 10
  • 2
  • 4
  • 2
  • 4