Update Super.js

This commit is contained in:
Liquor 2020-04-06 20:27:13 +08:00 committed by GitHub
parent 1471bc1862
commit ad140c8f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ http-response ^https?://.*\.snssdk\.com/bds/(feed/stream|comment/cell_reply|cell
[MITM]
hostname = *.snssdk.com
*/
var body = $response.body.replace(/\":([0-9]{15,})/g, '\":\"$1str\"');
var body = $response.body.replace(/\":([0-9]{15,})/g, '":"$1str"');
body = JSON.parse(body);
if (body.data.data) {
obj = body.data.data;
@ -68,8 +68,8 @@ if (obj instanceof Array) {
}
}
body = JSON.stringify(body);
body = body.replace(/\":\"([0-9]{15,})str\"/g, '\":$1');
body = body.replace(/\"can_download\":false/g, '\"can_download\":true');
body = body.replace(/\":\"([0-9]{15,})str\"/g, '":$1');
body = body.replace(/\"can_download\":false/g, '"can_download":true');
body = body.replace(/tplv-ppx-logo.image/g, '0x0.gif');
body = body.replace(/tplv-ppx-logo/g, '0x0');
$done({