From 77fcf2deffcb21c15a58cd19e3ee40b039ee05d1 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sun, 15 Jun 2014 00:55:34 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grepolis.user.js b/grepolis.user.js index 4c6fb02..3096c4f 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -10,7 +10,7 @@ // // @match http://*.grepolis.com/game/* // -// @version 1.0.73 +// @version 1.0.74 // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // ==/UserScript== @@ -127,8 +127,9 @@ var mood = parseFloat($(wndElement).find('#mood1').siblings().last().text()); var ts = $(wndElement).find(".farm_next_claim_time").text(); if(ts != "bereit") { + var hours = ts.substring(0,1); var minutes = ts.substring(2,4); - var seconds = minutes * 60 + ts.substring(5,7) * 1; + var seconds = hours * 60 * 60 + minutes * 60 + ts.substring(5,7) * 1; log("Wait " + ts + " for Farm " + xFarmId); wnd.close();