lucyman7654 Posted February 25, 2014 Report Posted February 25, 2014 javascript:function filter() { if (!document.URL.match(/screen=am_farm/)) { location.href = '{game}&screen=am_farm'; } var div = document.getElementById('am_widget_Farm'); var td=div.getElementsByTagName('td'); var a = div.td.getElementsByClassName('a'); td[0].innerHTML += '<br>Pagina a fost filtrata'; for (var i = 1; i < td.length; i++) { if (td.innerHTML.indexOf('command/attack.png') != -1) { a = 'disabled'; } }}filter();conditia din if e adevarata,cum fac ca butoanele sa devina inactive? Quote