1
ublock 用 :has 选择器来屏蔽指定类别帖子
source link: https://www.v2ex.com/t/925409
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
例如屏蔽所有的推广帖子:
! 2023-03-19 https://v2ex.com
v2ex.com##div.item.cell:has(a[href^="/go/promotions"])
6 条回复 • 2023-03-20 10:41:25 +08:00
Mithril 4 小时 17 分钟前 2 也可以用 has-text 屏蔽主题中包含特定关键词的帖子,比如狗屁通
v2ex.com##div.item.cell:has(a:has-text(/ChatGPT/i)) |
yfugibr 4 小时 10 分钟前 via Android pc 端网页可以忽略节点
|
Pipecraft 2 小时 57 分钟前 感谢楼主和 1 楼分享,学到了。
类似方式用 stylus 也可以。 ```css div.item.cell:has(a[href^="/go/promotions"]) { display: none; } div.item.cell:has(a[href^="/go/openai"]) { opacity: 20%; } ``` |
Pipecraft 2 小时 55 分钟前 |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK