Skip to content

Commit a84abac

Browse files
committed
no smooth
1 parent e0b50f1 commit a84abac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/backup/auto-like-fb.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ javascript: (async function () {
1313
}
1414

1515
function scrollToBottom() {
16-
window.scrollTo(0, document.body.scrollHeight, { behavior: "smooth" });
16+
window.scrollTo(0, document.body.scrollHeight, {
17+
// behavior: "smooth",
18+
});
1719
}
1820

1921
const doneKey = "auto-like-done";
@@ -37,7 +39,7 @@ javascript: (async function () {
3739
for (let btn of btns) {
3840
btn.scrollIntoView({
3941
block: "center",
40-
behavior: "smooth",
42+
// behavior: "smooth",
4143
});
4244
btn.click();
4345
await sleep(500);
@@ -51,7 +53,7 @@ javascript: (async function () {
5153
btns.splice(btns.indexOf(btn), 1);
5254
}
5355
scrollToBottom();
54-
await sleep(1000);
56+
await sleep(3000);
5557
}
5658
alert("xong");
5759
})();

0 commit comments

Comments
 (0)