From 13d089982316f8580b62bf7d07008beba18255bb Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Thu, 7 Aug 2014 21:42:42 +0200 Subject: [PATCH] =?UTF-8?q?/=20=E2=80=98grepolis.user.js=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grepolis.user.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/grepolis.user.js b/grepolis.user.js index a6468ee..c689f68 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -80,17 +80,19 @@ var townCount = 0; for(var town_id in farm_ids) { - HelperTown.townSwitch(town_id); - HelperTown.handleInfoWindowJumpToTownClick(); townCount++; var town_id_c = town_id; setTimeout(function() { - var farmtowns = $(".farmtown_owned_on_same_island"); - $.each(farmtowns, function(f, farmtown) { - var farmtownId = farmtown["id"].split("_")[2]; - farm_ids[town_id_c].push(+farmtownId); - }); - }, townCount*2000); + HelperTown.townSwitch(town_id); + HelperTown.handleInfoWindowJumpToTownClick(); + setTimeout(function() { + var farmtowns = $(".farmtown_owned_on_same_island"); + $.each(farmtowns, function(f, farmtown) { + var farmtownId = farmtown["id"].split("_")[2]; + farm_ids[town_id_c].push(+farmtownId); + }); + }, 1800); + }, townCount*2200); } setTimeout(function() {