Skip to content

Commit

Permalink
fix upvoteSameComments logic
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Jun 2, 2024
1 parent 7ef7ff3 commit d221b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserscriptTools/Post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default class Post {
.querySelectorAll<HTMLElement>('.comment-body .comment-copy')
.forEach(element => {
const text = element.innerText.toLowerCase();
if (text !== stripped || text !== strippedAlt) return;
if (text !== stripped && text !== strippedAlt) return;

const parent = element.closest('li');

Expand Down

0 comments on commit d221b81

Please sign in to comment.