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