/ ‘grepolis.user.js’
This commit is contained in:
@ -79,6 +79,17 @@
|
||||
document.getElementsByTagName("head")[0].appendChild(s);
|
||||
|
||||
|
||||
for(var town_id in farm_ids) {
|
||||
HelperTown.townSwitch(town_id);
|
||||
HelperTown.handleInfoWindowJumpToTownClick();
|
||||
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||
$.each(farmtowns, function(f, farmtown) {
|
||||
var farmtownId = farmtown["id"].split("_")[2];
|
||||
farm_ids[town_id].push(+farmtownId);
|
||||
});
|
||||
}
|
||||
|
||||
setTimeout(function() {
|
||||
for(var town_id in farm_ids) {
|
||||
var town_countdown = document.createElement("span");
|
||||
town_countdown.textContent = "" + ITowns.getTown(town_id).name + ":";
|
||||
@ -89,19 +100,9 @@
|
||||
var tmoutId = 'farm-' + xFarmId
|
||||
$(town_countdown).append('<span id="' + tmoutId + '"><script>j_countdown(' + Math.floor(tmout/1000) + ', "' + tmoutId + '");</script></span>, ');
|
||||
});
|
||||
|
||||
HelperTown.townSwitch(town_id);
|
||||
HelperTown.handleInfoWindowJumpToTownClick();
|
||||
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||
$.each(farmtowns, function(f, farmtown) {
|
||||
var farmtownId = farmtown["id"].split("_")[2];
|
||||
farm_ids[town_id].push(+farmtownId);
|
||||
});
|
||||
|
||||
|
||||
$(town_countdown).append('<br />');
|
||||
}
|
||||
|
||||
}, 5000);
|
||||
|
||||
$("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("<select id=choosefarmduration><option value=-1>disable</option><option value=300 selected>5min</option><option value=600>10min</option><option value=1200>20min</option><option value=2400>40min</option><option value=5400>90min</option><option value=10800>3h</option><option value=14400>4h</option><option value=28800>8h</option></select>" + GM_info.script.version);
|
||||
var choose = $("#choosefarmduration")[0];
|
||||
|
Reference in New Issue
Block a user