mirror of
https://github.com/Giu-zhao/ios_rule_script
synced 2024-11-22 08:28:25 +08:00
[Synology] DownloadStation适配DSM7
This commit is contained in:
parent
5bbcb69d3c
commit
57f2b0397c
@ -1,4 +1,9 @@
|
||||
# 网易云课堂_离线下载课程内容
|
||||
#!name= 网易云课堂离线下载课程内容
|
||||
#!desc= 将网易云课堂课程内容下载到群晖NAS。
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/ke\.study\.youdao\.com\/course\/app\/detail.json requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js,tag=网易云课堂_离线下载课程内容
|
||||
|
368
script/synology/DSM6/downloadstation.js
Normal file
368
script/synology/DSM6/downloadstation.js
Normal file
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ let magicJS = MagicJS(scriptName, "INFO");
|
||||
function SynoAuth(synoUrl, account, passwd) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let options = {
|
||||
url: `${synoUrl}/webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account=${account}&passwd=${passwd}&session=DownloadStation&format=cookie`,
|
||||
url: `${synoUrl}/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=login&account=${account}&passwd=${passwd}`,
|
||||
headers: {
|
||||
"User-Agent": "Mozilla/5.0",
|
||||
},
|
||||
|
@ -1,4 +1,10 @@
|
||||
# Twitter离线下载收藏内容
|
||||
#!name= Twitter离线下载收藏内容
|
||||
#!desc= 将Twitter收藏内容下载到群晖NAS。
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/api\.twitter\.com\/[0-9.]*\/favorites\/create.json requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js,tag=Twitter_离线下载收藏内容
|
||||
|
Loading…
Reference in New Issue
Block a user