[-GC-] ublock怎擋特定的Inline script

作者: vernc (cralvin)   2022-07-27 20:57:19
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
作者: s8321414 (冥王歐西里斯)   2022-07-28 07:32:00
有AdBlock板
作者: crescent3 (C3)   2022-07-28 08:26:00
你自己貼的連結不就寫了 只能全擋 萬惡google現在只想廢擋廣告套件武功 不用期待會支援了可以試試用userscript解

Links booklink

Contact Us: admin [ a t ] ucptt.com