0
I wrote a code that looks for a specific text on a page and if it contains returns positive if it does not update. But I wanted to improve the code and make you look for lines in the source code of the page to find a specific image like this
src="https://i.dstatic.com/images/glyphish/837-Palette-Selected.png"
$(document).ready(function() {
setTimeout(function() {
var LookFor = "texto "; // procurar por
if ($('body:contains("' + LookFor + '")').length > 0) {
alert("Achou " + LookFor);
return;
} else {
location.reload();
}
}, 2000); // troca pra aumentar o tempo
});
$('img[src="'+url+'"]'), that’s what you want?
– Guilherme Lautert
It worked, thank you very much.
– Madruguinha