-
Notifications
You must be signed in to change notification settings - Fork 46
/
Scripts.sgmodule
33 lines (24 loc) · 2.06 KB
/
Scripts.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
31
32
33
#!name=Scripts by lowking. Self-use
#!desc=该模块自用,脚本合集
#!category=Self
#!arguments=repoPrefix,repoSuffix
#!arguments-desc=repoPrefix:个人代码托管url前缀\nrepoSuffix:个人代码托管url后缀
[URL Rewrite]
(http[s]?:\/\/rule.l\/)(?<author>[\w]+[\/])(?<repo>[\w]+[\/])(?<branch>[\w]+[\/])(?<path>.+) {{{repoPrefix}}}$2$3raw/$4$5{{{repoSuffix}}} 302
[Rule]
# > 京东 去启动广告,必须是REJECT-TINYGIF, 否则比价会失效
URL-REGEX,^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start$,REJECT-TINYGIF
# 哔哩哔哩 去广告
URL-REGEX,https://app.bilibili.com/x/v2/(splash|search/(defaultword|square)),REJECT
URL-REGEX,https://api.bilibili.com/x/v2/dm/ad,REJECT
[Script]
# 获取当前经纬度
# location = type=http-request, pattern=https://weather-data.apple.com, script-path=https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tools/Location/locate.js, require-body=false
# 彩云获取经纬度,虽然和上面的一样,但是数据结构不一样
彩云位置 = type=http-request, pattern=https://weather-data.apple.com, script-path=https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js, require-body=false
# > bilbii 换区、评分
哔哩换区 = type=http-response,pattern=^https:\/\/ap(p|i)\.bili(bili|api)\.(com|net)\/(pgc\/view\/v\d\/app\/season|x\/offline\/version)\?,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Bili_Auto_Regions.js
哔哩搜索 = type=http-request,pattern=^https:\/\/ap(p|i)\.bili(bili|api)\.(com|net)\/x\/v\d\/search(\/type)?\?.+?%20(%E6%B8%AF|%E5%8F%B0|%E4%B8%AD)&,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Bili_Auto_Regions.js
斗鱼画质过滤 = requires-body=1,type=http-response,pattern=https:\/\/playclient\.douyucdn\.cn\/lapi\/live\/appGetPlayer\/stream,script-path=https://raw.githubusercontent.com/lowking/Scripts/master/douyu/streamQuality.js
[MITM]
hostname = %APPEND% playclient.douyucdn.cn, ap?.bilibili.com, ap?.biliapi.net, api.m.jd.com, trade-acs.m.taobao.com, weather-data.apple.com