您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide the Youtube adblock warning popup via CSS
This was my approach to dealing with the Youtube Adblock 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.
update:
If you find youtube becomes 'locked up' (you can't do anything on the website), it may be that this modal window (below) is now being triggered, and this script is hiding it.
Thus - this script will also hide this other modal\popup windows, but at the moment it wont deal with the lock\block youtube implementing with this new window.
(currently investigating how to deal with this lock from this new, other modal)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址