作者vernc (cralvin)
看板Browsers
标题[-GC-] ublock怎挡特定的Inline script
时间Wed Jul 27 20:57:19 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要怎写?
thx
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.237.44.114 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Browsers/M.1658926641.A.217.html
1F:→ s8321414: 有AdBlock板 07/28 07:32
2F:→ crescent3: 你自己贴的连结不就写了 只能全挡 万恶google现在只想 07/28 08:26
3F:→ crescent3: 废挡广告套件武功 不用期待会支援了 07/28 08:26
4F:→ crescent3: 可以试试用userscript解 07/28 08:28
https://github.com/uBlockOrigin/uBlock-issues/wiki/Resources-Library
好像是答案、那位看的懂Examples?
※ 编辑: vernc (36.237.44.207 台湾), 07/28/2022 12:06:29