例如屏蔽所有的推广帖子:
! 2023-03-19 https://v2ex.com
v2ex.com##div.item.cell:has(a[href^="/go/promotions"])
1
Mithril 71 天前 ![]() 也可以用 has-text 屏蔽主题中包含特定关键词的帖子,比如狗屁通
v2ex.com##div.item.cell:has(a:has-text(/ChatGPT/i)) |
3
yfugibr 71 天前 via Android
pc 端网页可以忽略节点
|
![]() |
4
debuggerx 71 天前
|
![]() |
5
Pipecraft 71 天前
感谢楼主和 1 楼分享,学到了。
类似方式用 stylus 也可以。 ```css div.item.cell:has(a[href^="/go/promotions"]) { display: none; } div.item.cell:has(a[href^="/go/openai"]) { opacity: 20%; } ``` |
![]() |
6
Pipecraft 71 天前
|