Skip to content

Instantly share code, notes, and snippets.

@ritokatsuga
Last active November 8, 2023 05:06
Show Gist options
  • Save ritokatsuga/224eacb81b21a3416629a3ebcf0b1462 to your computer and use it in GitHub Desktop.
Save ritokatsuga/224eacb81b21a3416629a3ebcf0b1462 to your computer and use it in GitHub Desktop.
(OUTDATED) Script to Remove Anti-Adblock Notice on YouTube
youtube.com##+js(set, yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel, false)
youtube.com##+js(set, Object.prototype.adBlocksFound, 0)
youtube.com##+js(set, ytplayer.config.args.raw_player_response.adPlacements, [])
youtube.com##+js(set, Object.prototype.hasAllowedInstreamAd, true)
@Yolomic
Copy link

Yolomic commented Oct 15, 2023

doesnt work

@MarcinOstrowskiCoding
Copy link

Works fine on firefox for me. Used with uBlock Origin, add this script to 'My Filters' and make sure not to run other adblockers on yt. One is enough. N'joy!

@ritokatsuga
Copy link
Author

@Yolomic The script is now outdated. And as SponsorBlock said on their fediverse account, it's recommended to just use plain uBlock Origin with manually updated filters on the extension. Stated in here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment