I want this piece of code to be executed every 5 second using Greasemonkey. I added it on Greasemonkey but it do not execute.
var inputs = document.getElementsByClassName('_48-k UFILikeLink');
for (var i = 0; i < inputs.length; i++) {
var string = inputs[i].outerHTML;
var substring = "Unlike this";
if (string.indexOf(substring) == -1)
inputs[i].click();
}