Skip to content

Commit 8e3089c

Browse files
committed
fix: 修复略过已点赞按钮的逻辑错误
1 parent 6ddeb09 commit 8e3089c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

external.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@
209209
// 逐个点击找到的按钮
210210
buttons.forEach((button, index) => {
211211
if (
212-
button.title !== "点赞此帖子" ||
213-
button.title !== "Like this post" ||
212+
(button.title !== "点赞此帖子" && button.title !== "Like this post") ||
214213
clickCounter >= 50
215214
) {
216215
return;

index_passage_list.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@
209209
// 逐个点击找到的按钮
210210
buttons.forEach((button, index) => {
211211
if (
212-
button.title !== "点赞此帖子" ||
213-
button.title !== "Like this post" ||
212+
(button.title !== "点赞此帖子" && button.title !== "Like this post") ||
214213
clickCounter >= 50
215214
) {
216215
return;

0 commit comments

Comments
 (0)