upvote others' "lost soul" comment
This commit is contained in:
parent
40b1a01873
commit
508a792389
1 changed files with 12 additions and 1 deletions
|
@ -95,6 +95,17 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Upvote all comments containing "welcome to"
|
||||||
|
comments.find("li").each(function() {
|
||||||
|
if ($(this).find("span.comment-copy")[0].innerText.toLowerCase().indexOf("welcome to") >= 0) {
|
||||||
|
// Click the "up" triangle
|
||||||
|
let upButtons = $(this).find("a.comment-up");
|
||||||
|
if (upButtons.length > 0) {
|
||||||
|
upButtons[0].click();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// You can't flag without 15 rep
|
// You can't flag without 15 rep
|
||||||
if (myReputation < 15)
|
if (myReputation < 15)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue