Skip to content

Commit

Permalink
chore: update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Dec 27, 2024
1 parent cc9a3ae commit 65b8bde
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions dist/AdvancedFlagging.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@
return;
}
connectProgress?.completed();
const reportProgress = this.progress?.addSubItem("Waiting for report to be received...");
const reportProgress = this.progress?.addSubItem("Waiting for the report to be received...");
await this.withTimeout(
this.timeout,
reportProgress,
Expand Down Expand Up @@ -1883,10 +1883,15 @@
const text = element.innerText.toLowerCase();
if (text !== stripped && text !== strippedAlt) return;
const parent = element.closest("li");
parent?.querySelector(
const button = parent?.querySelector(
"a.js-comment-up.comment-up-off"
// voting button
)?.click();
);
if (Store.dryRun) {
console.log("Upvote", element, "by clicking", button);
return;
}
button?.click();
});
}
watchForFlags() {
Expand Down Expand Up @@ -3641,15 +3646,15 @@
const response = JSON.parse(xhr.responseText);
audit = response.isAudit;
if (response.isAudit) return;
const page2 = new Page();
const post = page2.posts[0];
while (!isDone) await delay(200);
const url = `//stackoverflow.com/a/${post.id}`;
const url = `//stackoverflow.com/a/${response.postId}`;
await Promise.all([
MetaSmokeAPI.queryMetaSmokeInternal([url]),
NattyAPI.getAllNattyIds([post.id]),
NattyAPI.getAllNattyIds([response.postId]),
CopyPastorAPI.storeReportedPosts([url])
]);
const page2 = new Page();
const post = page2.posts[0];
while (!isDone) await delay(200);
post.addIcons();
document.querySelector(".js-review-submit")?.addEventListener("click", async (event) => {
const looksGood = document.querySelector(
Expand Down

0 comments on commit 65b8bde

Please sign in to comment.