DeletedUser
Guest
Code:
javascript:
var maxDist = 30;
/**
* author: Patricier
* name: FA-filter
* version: 1.0.0 (modified)
* modified by StivenBauss to filter distances
*/
function filter()
{
var div = document.getElementById('am_widget_Farm');
var td = div.getElementsByTagName('td');
td[0].innerHTML += '<br>Villages you attack are being filtered';
for (var i = 1; i< td.length; i++)
{
if (td[i].innerHTML > maxDist)
{
td[i].parentNode.style.display = 'none';
}
}
}
/*=== main ====*/
filter();
void 0;
This script filters out reports in the FA that are over a certain distance.
To set that distance just change this value in the beginning of the script:
Code:
maxDist = 30
Click the script in the FA, and only reports with the smaller distance will remain.
Last edited by a moderator: