🏠 Home 

屏蔽知乎使用adblock后页面顶部出现的横幅

try to take over the world!

< 脚本屏蔽知乎使用adblock后页面顶部出现的横幅的反馈

评价:好评 - 脚本运行良好

§
发表于:2018-05-08
编辑于:2018-05-08

你好,建议加上屏蔽知乎专栏的

这个对知乎专栏的无效,因为url为:zhuanlan.zhihu.com/xxxx 所以把match改成:// @match *://*.zhihu.com/* 就可以了。 全部代码如下:

    // ==UserScript==
// @name         屏蔽知乎使用adblock后页面顶部出现的横幅
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        *://*.zhihu.com/*
// @grant        none
// ==/UserScript==
(function() {
'use strict';
var AdblockBanner=document.getElementsByClassName("AdblockBanner")[0];
AdblockBanner.style.display="none";
// Your code here...
})();

发表回复

登录以发表回复。