var script = document.createElement('script');
script.type = "text/javascript";
script.src="https://code.jquery.com/jquery-3.2.1.min.js";
document.head.appendChild(script);
var t = 0;
$.each($("button"),function(i,v){
if($(v).text() == "Follow")
{
setTimeout(function(){
$(v).click();
},t);
t+=100;
}
});
Find more questions by tags jQuery