Run a script in chrome every 1 minute
<p>im trying to make a script that picks 1 random class name out of 3
every 1 minute and clicks the button with the chosen class
so far i created the script that clicks on the button:</p>
<pre><code>setTimeout(function () {
    $(&quot;.btn-danger&quot;).trigger(&quot;click&quot;);
}, 100);
</code></pre>
<p>The problem is if i put it in a while(true)
the site stuck and then the browser crashes.</p>
<p>Also im have no idea how to make it to chose random class so i putted in one of them.</p>
<p>Will be glad to get some help here :D</p>