|
阅读:643回复:4
此类在css里打牛皮癣的内容如何选择屏蔽<div class="feed-card" data-v-0935080e="">
<div class="bili-feed-card" data-feed-card-row-col="2-3" data-v-0935080e="">
<div class="shortcut-bg">
< !---->
</div>
<div class="bili-video-card is-rcmd" style="--cover-radio:56.25%;" data-report="tianma.2-3-6.click">
< !---->
<div class="b11sqjnrp335zz"></div>
< !---->
</div>
</div>
</div>
在b11sqjnrp335zz里面有个::before 和::after 修饰这两个伪类的css里有广告 .b11sqjnrp335zz, .b66b87hn3jzaye {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
padding-top: var(--cover-radio);
background-color: var(--graph_bg_regular);
border-radius: 6px;
font-size: 14px;
color: var(--text4);
white-space: nowrap;
display: block!important;
}
.b11sqjnrp335zz::before, .b66b87hn3jzaye::before {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -100%);
content: '该内容被AdGuard/AdBlock类插件屏蔽';
}
.b11sqjnrp335zz::after, .b66b87hn3jzaye::after {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, 0);
content: '请检查插件以恢复正常内容展示';
} |
|
|
1楼#
发布于:2025-07-10 09:28
https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/refs/heads/master/minority-mv.txt https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/refs/heads/master/mv.txt 订阅上边这俩规则,b站首页这里有时会出牛皮癣,多刷新几次 |
|
|
2楼#
发布于:2025-07-09 15:09
有具体的bilibili网址能复现吗?大家一起看看。甚至可以写一段js脚本来屏蔽。
|
|
|
|
3楼#
发布于:2025-07-08 16:50
www.bilibili.com##div.feed-card:matches-css-before(content: '该内容被AdGuard/AdBlock类插件屏蔽') www.bilibili.com##div.feed-card:matches-css-after(content: '请检查插件以恢复正常内容展示')这两条没效果啊,是前边写父级元素不行么?他这个css是在包含随机名的子元素里 |
|
|
4楼#
发布于:2025-07-07 11:18
这是before伪类,没弄过,ublock应该可以,参考:https://github.com/fang5566/uBlock/wiki/%E8%BF%87%E7%A8%8B%E5%BC%8F%E4%BF%AE%E9%A5%B0%E8%A7%84%E5%88%99
里面 subject:matches-css-before(arg) 这个。根据这个伪类里面的属性,找到其节点进行屏蔽。 |
|
|