小胖子的梦想 发表于 2021-12-2 10:54:04

为什么这样不可以屏蔽广告,代码哪里有问题求解答

// ==UserScript==
// @name         去广告
// @namespace    https://bbs.tampermonkey.net.cn/
// @version      0.1.0
// @descriptiontry to take over the world!
// @author       You
// @match      https://bbs.tampermonkey.net.cn/*
// @grant       GM_addStyle
// @grant       unsafeWindow
// ==/UserScript==

// 在此处键入代码……
let weburl = window.location.href
if(weburl.indexOf('bbs.tampermonkey.net.cn')!=-1){
    GM_addStyle('.wp comiis_nv_pop{display:none !important}')
}








王一之 发表于 2021-12-2 10:54:05

GM_addStyle('.wp comiis_nv_pop{display:none !important}')

GM_addStyle('.wp.comiis_nv_pop{display:none !important}')

哥哥可以学一下css,上面的写错了

李恒道 发表于 2021-12-2 14:52:25

王一之 发表于 2021-12-2 10:54
GM_addStyle('.wp comiis_nv_pop{display:none !important}')

GM_addStyle('.wp.comiis_nv_pop{display:no ...

一之哥牛逼!
上去就是一顿秒杀
页: [1]
查看完整版本: 为什么这样不可以屏蔽广告,代码哪里有问题求解答