Skip to content

Commit 8493cdc

Browse files
authored
Create YouTube.sgmodule
1 parent e74c724 commit 8493cdc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

YouTube.sgmodule

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!name=YouTube去广告模块
2+
#!desc=去除YouTube视频内广告
3+
4+
[Rule]
5+
URL-REGEX,https?:\/\/.+.googlevideo.com\/ptracking\?pltype=adhost,REJECT
6+
URL-REGEX,https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT
7+
URL-REGEX,https?:\/\/.+.youtube.com\/get_midroll_,REJECT
8+
URL-REGEX,https?:\/\/.+.youtube.com\/pagead\/,REJECT
9+
URL-REGEX,https?:\/\/.+.youtube.com\/ptracking\?,REJECT
10+
URL-REGEX,https?:\/\/.+.youtube.com\/_get_ads,REJECT
11+
URL-REGEX,https?:\/\/premiumyva.appspot.com\/vmclickstoadvertisersite,REJECT
12+
URL-REGEX,https?:\/\/s0.2mdn.net\/ads\/,REJECT
13+
URL-REGEX,https?:\/\/stats.tubemogul.com\/stats\/,REJECT
14+
URL-REGEX,https?:\/\/youtubei.googleapis.com\/.+ad_break,REJECT
15+
URL-REGEX,https?:\/\/youtubei.googleapis.com\/youtubei\/.+(ad|log),REJECT
16+
URL-REGEX,https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adformat,REJECT
17+
URL-REGEX,https?:\/\/[\w-]+\.googlevideo\.com\/.+&oad,REJECT-TINYGIF
18+
19+
[URL Rewrite]
20+
ctier=[A-Z] citer=A 302
21+
22+
[Script]
23+
YouTube去广告 = type=http-request,pattern=^https?:\/\/.+?\.googlevideo\.com\/.+&(oad|ctier)=(?!A),script-path=https://choler.github.io/Surge/Script/YouTube.js
24+
25+
[MITM]
26+
hostname = %APPEND% *.googlevideo.com

0 commit comments

Comments
 (0)