Yik Yak Auto Downvote Script

For research purposes… ¯\_(ツ)_/¯

window.scrollBy(0, 10000);

function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function downvote() {
var L = document.getElementsByClassName(“downvote”);
var i = 0;
for (i=0; i<L.length; i++) {
console.log(“Downvoting…”);
setTimeout(L[i].click());
await sleep(2000);
window.scrollBy(0, 10000);
}
downvote();
}
downvote();