JSFiddle - React, Tailwind, and code Playground

by BurpmanJunior

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);
});