例如屏蔽所有的推广帖子:
! 2023-03-19 https://v2ex.com v2ex.com##div.item.cell:has(a[href^="/go/promotions"])
1 Mithril 2023-03-20 09:19:30 +08:00 ![]() 也可以用 has-text 屏蔽主题中包含特定关键词的帖子,比如狗屁通 v2ex.com##div.item.cell:has(a:has-text(/ChatGPT/i)) |
3 yfugibr 2023-03-20 09:25:48 +08:00 via Android pc 端网页可以忽略节点 |
![]() | 5 Pipecraft 2023-03-20 10:39:23 +08:00 感谢楼主和 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 2023-03-20 10:41:25 +08:00 |