返回首頁 

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

try to take over the world!

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

Review: Good - script works

Posted: 2018-05-08
Edited: 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...})();

Post reply

Sign in to post a reply.