Skip to content

Commit d53509b

Browse files
committed
minor fix
1 parent b3e0be0 commit d53509b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

scripts/douyin_batchDownload.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export default {
3535
dataSend,
3636
response
3737
) => {
38-
console.log(method, url, dataSend, response);
39-
40-
if (url.includes("aweme/") && url.includes("/post")) {
41-
const res = response.clone();
42-
const json = await res.json();
38+
if (
39+
url.includes("aweme/") &&
40+
(url.includes("/post") || url.includes("/tab/feed"))
41+
) {
42+
const json = JSON.parse(response);
4343
console.log(json);
4444

4545
if (json?.aweme_list?.length) {

scripts/showHiddenFields.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ export default {
2020
div,
2121
label,
2222
ne,
23-
found = false;
23+
found = false,
24+
D = document,
25+
count = 0;
2426
for (i = 0; (f = document.forms[i]); ++i)
2527
for (j = 0; (e = f[j]); ++j)
2628
if (e.type == "hidden") {
27-
D = document;
2829
function C(t) {
2930
return D.createElement(t);
3031
}
@@ -45,9 +46,11 @@ export default {
4546
--j; /*for moz*/
4647

4748
found = true;
49+
count++;
4850
}
4951

5052
if (!found) alert("Nothing is hidden! / Không có thành phần nào bị ẩn!");
53+
alert("Showed " + count + " hidden fields.");
5154
},
5255
},
5356
};

scripts/tiktok_batchDownload.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,6 @@ export default {
422422
format(v) {
423423
return formatter.format(v);
424424
},
425-
onClickContainer(e) {
426-
if (e.target === this.$el) this.showModal = false;
427-
},
428425
},
429426
}).$mount(div);
430427

0 commit comments

Comments
 (0)