From a4711b7be1a2381eb2a5fea28efe986df8693f8d Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:05:29 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E6=AF=8F=E6=97=A5=E5=A4=96=E5=88=8A?= =?UTF-8?q?=E8=A7=A3=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 每日外刊解锁 --- meiriwaikan.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meiriwaikan.js diff --git a/meiriwaikan.js b/meiriwaikan.js new file mode 100644 index 0000000..7a54abf --- /dev/null +++ b/meiriwaikan.js @@ -0,0 +1,36 @@ +{ + "rules" : [ + { + "action" : "body", + "matchField" : "", + "field" : "", + "value" : "user_purchase_status\":1", + "matchValue" : "user_purchase_status\":\\d", + "destiontion" : "response", + "isRegex" : true + }, + { + "action" : "body", + "matchField" : "", + "field" : "", + "value" : "finished\":true", + "matchValue" : "finished\":\\w+", + "destiontion" : "response", + "isRegex" : true + } + ], + "enabled" : false, + "name" : "每日外刊", + "description" : "", + "locations" : [ + { + "method" : "GET", + "scheme" : "https", + "enabled" : true, + "port" : 443, + "query" : "", + "host" : "dict.eudic.net", + "path" : "\/jingting\/*" + } + ] +} From e883642ea454c93b2bee8e1bba45f9e369f0415d Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:26:49 +0800 Subject: [PATCH 02/10] Update meiriwaikan.js --- meiriwaikan.js | 49 +++++++++++++------------------------------------ 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index 7a54abf..ebfda81 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -1,36 +1,13 @@ -{ - "rules" : [ - { - "action" : "body", - "matchField" : "", - "field" : "", - "value" : "user_purchase_status\":1", - "matchValue" : "user_purchase_status\":\\d", - "destiontion" : "response", - "isRegex" : true - }, - { - "action" : "body", - "matchField" : "", - "field" : "", - "value" : "finished\":true", - "matchValue" : "finished\":\\w+", - "destiontion" : "response", - "isRegex" : true - } - ], - "enabled" : false, - "name" : "每日外刊", - "description" : "", - "locations" : [ - { - "method" : "GET", - "scheme" : "https", - "enabled" : true, - "port" : 443, - "query" : "", - "host" : "dict.eudic.net", - "path" : "\/jingting\/*" - } - ] -} +/*Quantumult X 脚本: +每日外壳内解锁内容 +[rewrite_local] +# Xunjie Unlock annual subscriptions (by LTribe) +^https?:\/\/.dict\.eudic\.bet\/jingting\/v\d\/* url script-response-body xunjie.js +[mitm] +hostname = dict.eudic.net, +*/ + +let obj = JSON.parse($response.body); +obj.data.user_purchase_status = 1; +obj.data.finished = true; +$done({body: JSON.stringify(obj)}); From 12ee8e1537a30586fcfe517b5c1437bd66a16fc0 Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:27:48 +0800 Subject: [PATCH 03/10] Update meiriwaikan.js --- meiriwaikan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index ebfda81..d8b0ed0 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -2,7 +2,7 @@ 每日外壳内解锁内容 [rewrite_local] # Xunjie Unlock annual subscriptions (by LTribe) -^https?:\/\/.dict\.eudic\.bet\/jingting\/v\d\/* url script-response-body xunjie.js +^https?:\/\/.dict\.eudic\.bet\/jingting\/v\d\/* url script-response-body https://cdn.jsdelivr.net/gh/asdf999888/Script@patch-1/meiriwaikan.js [mitm] hostname = dict.eudic.net, */ From 4ddc0864f70a405250089f20fc77ec43be3b639b Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:34:20 +0800 Subject: [PATCH 04/10] Update meiriwaikan.js --- meiriwaikan.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index d8b0ed0..c8e00b5 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -8,6 +8,5 @@ hostname = dict.eudic.net, */ let obj = JSON.parse($response.body); -obj.data.user_purchase_status = 1; -obj.data.finished = true; +obj.user_purchase_status = 1; $done({body: JSON.stringify(obj)}); From 4b679ed0fa89b2de0ff9dd50b5f46fecc05ed594 Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:34:40 +0800 Subject: [PATCH 05/10] Update meiriwaikan.js --- meiriwaikan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index c8e00b5..82cb318 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -1,5 +1,5 @@ /*Quantumult X 脚本: -每日外壳内解锁内容 +每日外刊内解锁内容 [rewrite_local] # Xunjie Unlock annual subscriptions (by LTribe) ^https?:\/\/.dict\.eudic\.bet\/jingting\/v\d\/* url script-response-body https://cdn.jsdelivr.net/gh/asdf999888/Script@patch-1/meiriwaikan.js From c728eab61b8bff2b42852bbedf7c7af7d7217af1 Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:43:02 +0800 Subject: [PATCH 06/10] Update meiriwaikan.js --- meiriwaikan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index 82cb318..e300db3 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -1,8 +1,8 @@ /*Quantumult X 脚本: 每日外刊内解锁内容 [rewrite_local] -# Xunjie Unlock annual subscriptions (by LTribe) -^https?:\/\/.dict\.eudic\.bet\/jingting\/v\d\/* url script-response-body https://cdn.jsdelivr.net/gh/asdf999888/Script@patch-1/meiriwaikan.js +# meiriwaikan 精听解锁 (by zzz) +^https?:\/\/dict\.eudic\.net\/jingting\/* url script-response-body https://cdn.jsdelivr.net/gh/asdf999888/Script@patch-1/meiriwaikan.js [mitm] hostname = dict.eudic.net, */ From d2003d2ed288d4002dc5f6d9d9ba3a71793c047a Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:55:54 +0800 Subject: [PATCH 07/10] Update meiriwaikan.js --- meiriwaikan.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index e300db3..3ca60ab 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -7,6 +7,7 @@ hostname = dict.eudic.net, */ -let obj = JSON.parse($response.body); -obj.user_purchase_status = 1; -$done({body: JSON.stringify(obj)}); +let obj = html.parse($response.body); +obj.data.user_purchase_status = 1; +obj.data.finished = true; +$done({body: html.stringify(obj)}); From 2c7f6720eaf888b26528863b4ef2c5302397e019 Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:59:22 +0800 Subject: [PATCH 08/10] Update meiriwaikan.js --- meiriwaikan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index 3ca60ab..a11852b 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -7,7 +7,7 @@ hostname = dict.eudic.net, */ -let obj = html.parse($response.body); +let obj = text/html.parse($response.body); obj.data.user_purchase_status = 1; obj.data.finished = true; -$done({body: html.stringify(obj)}); +$done({body: text/html.stringify(obj)}); From b3212433fd717f7cb3dbe6bca249198d7685b21b Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 13:54:06 +0800 Subject: [PATCH 09/10] Update meiriwaikan.js --- meiriwaikan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index a11852b..3ca60ab 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -7,7 +7,7 @@ hostname = dict.eudic.net, */ -let obj = text/html.parse($response.body); +let obj = html.parse($response.body); obj.data.user_purchase_status = 1; obj.data.finished = true; -$done({body: text/html.stringify(obj)}); +$done({body: html.stringify(obj)}); From f2419367b9d256907b56ae29a93f8830af52faf3 Mon Sep 17 00:00:00 2001 From: asdf999888 <74891670+asdf999888@users.noreply.github.com> Date: Tue, 15 Dec 2020 13:57:04 +0800 Subject: [PATCH 10/10] Update meiriwaikan.js --- meiriwaikan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meiriwaikan.js b/meiriwaikan.js index 3ca60ab..91af66c 100644 --- a/meiriwaikan.js +++ b/meiriwaikan.js @@ -7,7 +7,7 @@ hostname = dict.eudic.net, */ -let obj = html.parse($response.body); +let obj = text.parse($response.body); obj.data.user_purchase_status = 1; obj.data.finished = true; -$done({body: html.stringify(obj)}); +$done({body: text.stringify(obj)});