mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10:35 +08:00
Add two more sgmodule
This commit is contained in:
parent
7aaabd6d99
commit
f226cc13eb
@ -1,5 +1,4 @@
|
|||||||
const fs = require('fs');
|
const fsPromises = require('fs').promises;
|
||||||
const { promises: fsPromises } = fs;
|
|
||||||
const pathFn = require('path');
|
const pathFn = require('path');
|
||||||
const table = require('table');
|
const table = require('table');
|
||||||
const listDir = require('@sukka/listdir');
|
const listDir = require('@sukka/listdir');
|
||||||
|
|||||||
@ -250,6 +250,7 @@ i.giphy.com
|
|||||||
.cdn.imghaste.com
|
.cdn.imghaste.com
|
||||||
.98avcdn.xyz
|
.98avcdn.xyz
|
||||||
pics.dmm.co.jp
|
pics.dmm.co.jp
|
||||||
|
9191.ga
|
||||||
|
|
||||||
# >> Medium
|
# >> Medium
|
||||||
cdn-client.medium.com
|
cdn-client.medium.com
|
||||||
@ -421,6 +422,8 @@ static02.nyt.com
|
|||||||
.wdfiles.com
|
.wdfiles.com
|
||||||
# Zaobao
|
# Zaobao
|
||||||
static.zaobao.com
|
static.zaobao.com
|
||||||
|
# ClubHouse
|
||||||
|
static-assets.clubhouseapi.com
|
||||||
# Others
|
# Others
|
||||||
.v2ex.co
|
.v2ex.co
|
||||||
cdn.v2ex.com
|
cdn.v2ex.com
|
||||||
@ -485,3 +488,4 @@ assets.capterra.com
|
|||||||
cdn.ipinfo.io
|
cdn.ipinfo.io
|
||||||
static.missav.com
|
static.missav.com
|
||||||
cdn.missav.com
|
cdn.missav.com
|
||||||
|
assets.grammarly.com
|
||||||
|
|||||||
@ -7,3 +7,6 @@
|
|||||||
.mega.nz
|
.mega.nz
|
||||||
.mega.io
|
.mega.io
|
||||||
.mega.co.nz
|
.mega.co.nz
|
||||||
|
|
||||||
|
# >> Parallels, Inc.
|
||||||
|
download.parallels.com
|
||||||
|
|||||||
7
Modules/sukka_unlock_abema.sgmodule
Normal file
7
Modules/sukka_unlock_abema.sgmodule
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!name=[Sukka] Unlock AbemaTV
|
||||||
|
|
||||||
|
[MITM]
|
||||||
|
hostname = %APPEND% abematv.akamaized.net
|
||||||
|
|
||||||
|
[Script]
|
||||||
|
unlock_abema = requires-body=1,max-size=0,script-path=https://ruleset.skk.moe/Script/abema_unlock.js,script-update-interval=86400,type=http-response,pattern=^https://abematv.akamaized.net/region.*
|
||||||
7
Modules/sukka_unlock_emby.sgmodule
Normal file
7
Modules/sukka_unlock_emby.sgmodule
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!name=[Sukka] Unlock EMBY
|
||||||
|
|
||||||
|
[MITM]
|
||||||
|
hostname = %APPEND% mb3admin.com
|
||||||
|
|
||||||
|
[Script]
|
||||||
|
unlock_emby_premium = requires-body=1,max-size=0,script-path=https://ruleset.skk.moe/Script/fuck_emby.js,script-update-interval=86400,type=http-response,pattern=^https://mb3admin.com/.*
|
||||||
22
Script/abema_unlock.js
Normal file
22
Script/abema_unlock.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
const url = $request.url;
|
||||||
|
const body = url.endsWith('region') || url.endsWith('region/')
|
||||||
|
? 'OK'
|
||||||
|
: $response.body
|
||||||
|
|
||||||
|
if ($request.method === 'OPTION') {
|
||||||
|
$done({})
|
||||||
|
} else {
|
||||||
|
$done({
|
||||||
|
status: 200,
|
||||||
|
body,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'text/plain; charset=utf-8',
|
||||||
|
'Access-Control-Allow-Origin': '*',
|
||||||
|
'Access-Control-Allow-Credentials': '*',
|
||||||
|
'Access-Control-Allow-Headers': 'origin,range,hdntl,hdnts',
|
||||||
|
'Access-Control-Allow-Methods': 'GET,HEAD,POST,PUT,DELETE,OPTIONS',
|
||||||
|
'Access-Control-Expose-Headers': 'Server,range,hdntl,hdnts,Akamai-Mon-Iucid-Ing,Akamai-Mon-Iucid-Del,Akamai-Request-BC',
|
||||||
|
'Access-Control-Max-Age': '86400'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user