Youtube adblock popup hide

Hide the Youtube adblock warning popup via CSS

目前為 2023-10-24 提交的版本,檢視 最新版本

作者
BlissSol
評價
0 0 0
版本
0.1
建立日期
2023-10-24
更新日期
2023-10-24
尺寸
987 位元組
授權條款
MIT
腳本執行於

This was my approach to dealing with the Youtube Adlock warning modal window - which looks something like this (I had dark mode enabled)

I've seen others which are a JS approach, but a CSS approach seemed logical to me.




When Youtube actually loads the page, the modal wont exist (probably as its built with an SPA framework), but it does have its parent element ytd-popup-container.
When the modal actually appears, child elements to popup-container have then been injected into the page.
So i thought... just target the parent element.

Ive just tested this on Firefox & Chrome when using uBlock Origin as the ad blocker.