/ ‘grepolis.user.js’
This commit is contained in:
parent
72983e71d0
commit
2785bd863a
@ -10,7 +10,7 @@
|
||||
//
|
||||
// @match http://*.grepolis.com/game/*
|
||||
//
|
||||
// @version 1.0.38
|
||||
// @version 1.0.39
|
||||
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
||||
// ==/UserScript==
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
lastAmounts = "";
|
||||
console.log("Initializing...");
|
||||
windows = {};
|
||||
farm_ids = [1225, 1226, 1229, 1230, 1231];
|
||||
@ -50,7 +51,12 @@
|
||||
var d = new Date();
|
||||
var dformat = "[" + [d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds()].join(':') + "]";
|
||||
$('.town_name').text(dformat);
|
||||
console.log($.map($(".indicator .amount"),function(v){return $(v).text()}).join(", "));
|
||||
|
||||
var amounts = $.map($(".indicator .amount"),function(v){return $(v).text()}).join(", ");
|
||||
if(amounts != lastAmounts) {
|
||||
console.log(amounts);
|
||||
lastAmounts = amounts;
|
||||
}
|
||||
|
||||
var windowId = windows[xFarmId];
|
||||
if(windowId == undefined){
|
||||
|
Loading…
x
Reference in New Issue
Block a user