Skip to content

Instantly share code, notes, and snippets.

@ChengLuffy
Created January 26, 2022 02:04
Show Gist options
  • Save ChengLuffy/809dbcd0daf904bcc20f1496a2d9831e to your computer and use it in GitHub Desktop.
Save ChengLuffy/809dbcd0daf904bcc20f1496a2d9831e to your computer and use it in GitHub Desktop.
#!name=YouTube
#!desc=Remove YouTube Ads
[Rule]
URL-REGEX,^https:\/\/.+\.googlevideo\.com\/.+&oad,REJECT
URL-REGEX,https?:\/\/.+.googlevideo.com\/ptracking\?pltype=adhost,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/get_midroll_,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/pagead\/,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/ptracking\?,REJECT
URL-REGEX,https?:\/\/m.youtube.com\/_get_ads,REJECT
URL-REGEX,https?:\/\/premiumyva.appspot.com\/vmclickstoadvertisersite,REJECT
URL-REGEX,https?:\/\/s0.2mdn.net\/ads\/,REJECT
URL-REGEX,https?:\/\/stats.tubemogul.com\/stats\/,REJECT
URL-REGEX,https?:\/\/youtubei.googleapis.com\/.+ad_break,REJECT
URL-REGEX,https?:\/\/youtubei.googleapis.com\/youtubei\/.+(ad|log),REJECT
[URL Rewrite]
ctier=[A-Z] citer=A 302
[MITM]
hostname = %APPEND% *.googlevideo.com, youtubei.googleapis.com, *.youtube.com, premiumyva.appspot.com, s0.2mdn.net, stats.tubemogul.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment