/ ‘grepolis.user.js’
This commit is contained in:
parent
95028457a8
commit
ccc138a2d8
@ -10,7 +10,7 @@
|
||||
//
|
||||
// @match http://*.grepolis.com/game/*
|
||||
//
|
||||
// @version 1.1.44
|
||||
// @version 1.1.45
|
||||
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
||||
// ==/UserScript==
|
||||
|
||||
@ -80,15 +80,19 @@
|
||||
|
||||
var townCount = 0;
|
||||
for(var town_id in farm_ids) {
|
||||
console.log("prepare town " + town_id);
|
||||
townCount++;
|
||||
var town_id_c = town_id;
|
||||
setTimeout(function() {
|
||||
console.log("get farms for town " + town_id);
|
||||
HelperTown.townSwitch(town_id);
|
||||
HelperTown.handleInfoWindowJumpToTownClick();
|
||||
setTimeout(function() {
|
||||
console.log("getting farms for town " + town_id);
|
||||
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||
$.each(farmtowns, function(f, farmtown) {
|
||||
var farmtownId = farmtown["id"].split("_")[2];
|
||||
console.log("got farm " + farmtownId + " for town " + town_id);
|
||||
farm_ids[town_id_c].push(+farmtownId);
|
||||
});
|
||||
}, 1800);
|
||||
|
Loading…
x
Reference in New Issue
Block a user