-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathYouTube.sgmodule
30 lines (26 loc) · 1.35 KB
/
YouTube.sgmodule
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!name=YouTube
#!desc=YouTube ad removal.
#2021-1125
[Rule]
URL-REGEX,^https?:\/\/.+.googlevideo.com\/ptracking\?pltype=adhost,REJECT
URL-REGEX,^https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT
URL-REGEX,^https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?(adformat|adcontext),REJECT
URL-REGEX,^https?:\/\/.+.youtube.com\/get_midroll_,REJECT
URL-REGEX,^https?:\/\/.+.youtube.com\/pagead\/,REJECT
URL-REGEX,^https?:\/\/.+.youtube.com\/pcs\/activeview,REJECT
URL-REGEX,^https?:\/\/.+.youtube.com\/ptracking\?,REJECT
URL-REGEX,^https?:\/\/.+.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-REGEX,^https?:\/\/[\w-]+\.googlevideo\.com\/.+&oad,REJECT-TINYGIF
URL-REGEX,^https?:\/\/[\w-]+\.googlevideo\.com\/.+\/ctier\/(?!A),REJECT-TINYGIF
[URL Rewrite]
# This is NOT a typo
ctier=[A-Z] citer=A 302
[Script]
YouTube = type=http-request,pattern=^https?:\/\/.+?\.googlevideo\.com\/.+(\/|&)(oad|ctier)(\/|=)(?!A),script-path=https://raw.githubusercontent.com/Taxyovio/Surge-Firewall/main/YouTube.js
[MITM]
hostname = %APPEND% *.googlevideo.com, *.youtube.com, youtubei.googleapis.com