xfdyd / -

博客
1 stars 0 forks source link

ublock origin(ubo)规则记 #22

Open xfdyd opened 2 years ago

xfdyd commented 2 years ago

ubo去除lofter个人域名页页面下方浮动下载APP的广告(元素为:“###auto-id-ETLSRTES.m-moreselect”)的规则: *.lofter.com##[id^="auto-id-"].m-moreselect 参考:https://bbs.kafan.cn/thread-2059469-1-1.html

网页已经改变,这个对象不存在了。但现在认为,或也可采用这条规则: *.lofter.com###.m-moreselect

下面加新号的写法才能够自动匹配,而不用顾忌是开头还是结尾:

[id*="auto-id-"]

元素:

.bottom_box-43794493

规则: news.ifeng.com##[class*="bottom_box-"]

参考 https://www.jianshu.com/p/2a929e2f0933

xfdyd commented 2 years ago

https://mjs.sinaimg.cn/umd/base-tools-SUDA/1.1.30/index.min 将上面加入自定义广告过滤规则,新浪的网页就能够自动展开了,虽然其他广告和推荐内容也消失了。不知道会不会造成一些网页不正常。

xfdyd commented 2 years ago

移动端自动展开全文的油猴脚本纷纷消失了。要去这类广告,可以尝试屏蔽网页一些JS脚本或者样式表,如果你愿意比如图片显示不正常。比如以下规则: 华尔街见闻: static-alpha.wallstcn.com@wallstreetcn.com 腾讯新闻、网易新闻、baijiahao.baidu.com: 禁用JS

xfdyd commented 1 year ago

凤凰网用这个更好: ifeng.com##[class*="bottom_box-"]

xfdyd commented 1 year ago

这样应该也可以: ifeng.com##[class*=bottom_box-]

xfdyd commented 1 year ago

[id*=auto-id-]