JSFiddle - React, Tailwind, and code Playground
JavaScript
// downvote
$('.arrow.down').each(function(inArr){
setTimeout(function(){
if(!$(this).hasClass('downmod')){
//$(this).vote(r.config.vote_hash, null, event);
$(this).click();
}
},(10*inArr));
});
// upvote
$('.arrow:not(.down)').each(function(inArr){
setTimeout(function(){
if(!$(this).hasClass('upmod')){
$(this).vote(r.config.vote_hash, null, event);
}
},10*inArr);
});