From 70b707fee51842f5a7d56d77a7b5b6495bb58103 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Tue, 22 Jul 2014 19:13:55 +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 | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/grepolis.user.js b/grepolis.user.js index eb2f35d..69e8b8b 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -10,7 +10,7 @@ // // @match http://*.grepolis.com/game/* // -// @version 1.1.19 +// @version 1.1.20 // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // ==/UserScript== @@ -21,20 +21,32 @@ console.log("Initializing..."); windows = {}; durations = {}; - farm_ids = { - // Insel 0 - 83792: [20468, 20470, 20471, 20472], - 84064: [20466, 20467], - // Insel 1 - 85523: [20489, 20490, 20492, 20496, 20491, 20495], - // Insel 2 - 74298: [19577, 19579, 19583, 19584, 19582, 19581], - } - towns = { - 83792: "0x00", - 84064: "0x01", - 85523: "0x10", - 74298: "0x20" + switch(location.host.substring(0,4)) { + case "de66": + farm_ids = { + // Insel 0 + 83792: [20468, 20470, 20471, 20472], + 84064: [20466, 20467], + // Insel 1 + 85523: [20489, 20490, 20492, 20496, 20491, 20495], + // Insel 2 + 74298: [19577, 19579, 19583, 19584, 19582, 19581], + } + towns = { + 83792: "0x00", + 84064: "0x01", + 85523: "0x10", + 74298: "0x20" + } + break; + case "de67": + farm_ids = { + // Insel 0 + 4809: [], + } + towns = { + 4809: "0x00", + } } setTimeout(function() {