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

看板Browsers作者 (cralvin)時間1年前 (2022/07/27 20:57), 1年前編輯推噓0(004)
留言4則, 2人參與, 1年前最新討論串1/1
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://www.ptt.cc/bbs/Browsers/M.1658926641.A.217.html

07/28 07:32, 1年前 , 1F
有AdBlock板
07/28 07:32, 1F

07/28 08:26, 1年前 , 2F
你自己貼的連結不就寫了 只能全擋 萬惡google現在只想
07/28 08:26, 2F

07/28 08:26, 1年前 , 3F
廢擋廣告套件武功 不用期待會支援了
07/28 08:26, 3F

07/28 08:28, 1年前 , 4F
可以試試用userscript解
07/28 08:28, 4F
https://github.com/uBlockOrigin/uBlock-issues/wiki/Resources-Library 好像是答案、那位看的懂Examples? ※ 編輯: vernc (36.237.44.207 臺灣), 07/28/2022 12:06:29
文章代碼(AID): #1YuJOn8N (Browsers)