From d7922c724b51d775562f3826d242aa5487421179 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 4 Jun 2014 18:11:03 +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 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/grepolis.user.js b/grepolis.user.js index a1804ff..024878c 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -10,7 +10,7 @@ // // @match http://*.grepolis.com/game/* // -// @version 1.0.41 +// @version 1.0.42 // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // ==/UserScript== @@ -48,10 +48,6 @@ return function() { var timeout = 60000; try { - var d = new Date(); - var dformat = "[" + [d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds()].join(':') + "]"; - $('.town_name').text(dformat); - var amounts = $.map($(".indicator .amount"),function(v){return $(v).text()}).join(", "); if(amounts != lastAmounts) { console.log(amounts); @@ -96,7 +92,6 @@ var minutes = ts.substring(2,4); var seconds = minutes * 60 + ts.substring(5,7) * 1; - $('.town_name').text(dformat + " +" + ts); console.log("Farm " + xFarmId + " not ready, trying again in " + ts); wnd.close(); @@ -112,13 +107,13 @@ } } - function getWaresFromFarm(xGetWaresButton, xMood, xFarmId) { + function getWaresFromFarm(xButton, xMood, xFarmId) { if(xMood - 6 > 80) { console.log("Plündere " + xFarmId + " @ Mood: " + xMood); - w(xGetWaresButton).call('claimLoad', xFarmId.toString(), 'double', 300); + w(xButton).call('claimLoad', xFarmId.toString(), 'double', 300); } else { console.log("Fordere " + xFarmId + " @ Mood: " + xMood); - w(xGetWaresButton).call('claimLoad', xFarmId.toString(), 'normal', 300); + w(xButton).call('claimLoad', xFarmId.toString(), 'normal', 300); } }