作者vernc (cralvin)
看板Ajax
标题[请问] ublock怎挡特定的Inline script
时间Fri Jul 29 10:09:39 2022
https://github.com/gorhill/uBlock/wiki/Inline-script-tag-filtering
举例来说
<script>
if(sessionStorage.getItem('showAlert') !="false")
{alert("WARNING! Adult Language and Content! The page
you requested
contains adult material or mature content that is not suitable for viewers
under the age of 18 years old. Customers under 18 years of age are prohibited
from accessing this page.");
sessionStorage.setItem('showAlert', "false");
}
</script>
www.micmicidol.com##^script:has-text(showAlert)
上面这行waterfox有用
Not supported in Chromium-based browser.
请问用在chrome要怎写?
https://github.com/uBlockOrigin/uBlock-issues/wiki/Resources-Library
好像是答案、那位看的懂Examples?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.237.14.75 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Ajax/M.1659060581.A.F19.html
1F:→ gasbomb: 一开始就说 Not supported in Chromium-based 了啊 08/01 11:43