1
amustart 2016-12-14 23:29:57 +08:00 via Android
可以 adblock 的 option 有讲语法 ,我记得是支持正则的,这个正则应该可以解决吧,或者你看看其他高级语法试试
|
2
oiuyufeng OP @amustart 没太搞明白正则怎么写, tieba.baidu.com##DIV[class^="l_post l_post_bright j_l_post clearfix [a-z0-9]* "]这样没成功
|
3
LokiSharp 2016-12-15 10:09:33 +08:00
直接屏蔽百度的广告域名就好了啊
|
4
LokiSharp 2016-12-15 10:10:58 +08:00
# Special Rules for Baidu
DOMAIN-SUFFIX,a.baidu.com,REJECT DOMAIN-SUFFIX,adm.baidu.com,REJECT DOMAIN-SUFFIX,api.youqian.baidu.com,REJECT DOMAIN-SUFFIX,as.baidu.com,REJECT DOMAIN-SUFFIX,baidustatic.com,REJECT DOMAIN-SUFFIX,baidutv.baidu.com,REJECT DOMAIN-SUFFIX,bar.baidu.com,REJECT DOMAIN-SUFFIX,bdimg.share.baidu.com,REJECT DOMAIN-SUFFIX,boscdn.bpc.baidu.com,REJECT DOMAIN-SUFFIX,c.baidu.com,REJECT DOMAIN-SUFFIX,cbjs.baidu.com,REJECT DOMAIN-SUFFIX,cjhq.baidu.com,REJECT DOMAIN-SUFFIX,cpro.baidu.com,REJECT DOMAIN-SUFFIX,cpro.tieba.baidu.com,REJECT DOMAIN-SUFFIX,cpro.zhidao.baidu.com,REJECT DOMAIN-SUFFIX,dcps.nuomi.com,REJECT DOMAIN-SUFFIX,drmcmm.baidu.com,REJECT DOMAIN-SUFFIX,e.baidu.com,REJECT DOMAIN-SUFFIX,eiv.baidu.com,REJECT DOMAIN-SUFFIX,focusbaiduafp.allyes.com,REJECT DOMAIN-SUFFIX,hc.baidu.com,REJECT DOMAIN-SUFFIX,hm.baidu.com,REJECT DOMAIN-SUFFIX,hmma.baidu.com,REJECT DOMAIN-SUFFIX,imageplus.baidu.com,REJECT DOMAIN-SUFFIX,itsdata.map.baidu.com,REJECT DOMAIN-SUFFIX,log.nuomi.com,REJECT DOMAIN-SUFFIX,log.waimai.baidu.com,REJECT DOMAIN-SUFFIX,ma.baidu.com,REJECT DOMAIN-SUFFIX,mobads-logs.baidu.com,REJECT DOMAIN-SUFFIX,mobads.baidu.com,REJECT DOMAIN-SUFFIX,nsclick.baidu.com,REJECT DOMAIN-SUFFIX,rj.baidu.com,REJECT DOMAIN-SUFFIX,spcode.baidu.com,REJECT DOMAIN-SUFFIX,static.map.bdimg.com,REJECT DOMAIN-SUFFIX,tk.baidu.com,REJECT DOMAIN-SUFFIX,tuisong.baidu.com,REJECT DOMAIN-SUFFIX,ucstat.baidu.com,REJECT DOMAIN-SUFFIX,ufosdk.baidu.com,REJECT DOMAIN-SUFFIX,union.baidu.com,REJECT DOMAIN-SUFFIX,utility.baidu.com,REJECT DOMAIN-SUFFIX,utk.baidu.com,REJECT DOMAIN-SUFFIX,wangmeng.baidu.com,REJECT DOMAIN-SUFFIX,wm.baidu.com,REJECT DOMAIN-SUFFIX,wn.pos.baidu.com,REJECT DOMAIN-SUFFIX,zhanzhang.baidu.com,REJECT |
5
LokiSharp 2016-12-15 10:11:34 +08:00
额,我这个是 我 Surge 的规则。。。基本上屏蔽了这些域名百度广告就没有了
|
6
JoyNeop 2016-12-15 12:54:44 +08:00
在 document.querySelectorAll 的 API 里,`$$('div.l_post.l_post_bright.j_l_post.clearfix:not([class="l_post l_post_bright j_l_post clearfix "])')` 能够选出页面上 4 个广告。稍微改一下就能变成 AdBlock 的语法吧,还不用正则。
|
7
lovelinghan 2016-12-15 20:38:06 +08:00
@LokiSharp 求全一点的 surge 屏蔽域名
|
9
LokiSharp 2016-12-16 10:42:41 +08:00
|