自定义AdBlock过滤器无法正常工作

时间:2018-01-19 19:43:42

标签: html css-selectors ads custom-lists adblock

为什么下面的Adblock过滤器设置不会阻止The Weather Channel网站上的“关闭广告拦截器”元素?

注意:要显示消息,请在启用了广告拦截器的全新私人,隐身或来宾窗口中打开该页面。

<div class="sp_veil1516388766878" style="display: block"></div>
<div id="sp_message_id1516388766878" class="sp_message_container1516388766878" style="display: block;">

过滤器:

weather.com##div[class^="sp_veil"]
weather.com##div[class^="sp_message_container"]

我希望广告拦截器删除这两个元素,因为class值以sp_veilsp_message_container开头。

1 个答案:

答案 0 :(得分:1)

我终于使用uBlock Origin(plugin使用了过滤器,  website)。说明中包含说明。

! Block dark transparent veil and message
weather.com##div[class^="sp_veil"]
weather.com##div[class^="sp_message_container"]

! Enable scrolling (page disables) it for message
weather.com#$#html {overflow-y: visible !important}
weather.com#$#html {height: auto !important}
weather.com#$#html {height: auto !important}
相关问题