/ ‘grepolis.user.js’
This commit is contained in:
parent
95028457a8
commit
ccc138a2d8
@ -10,7 +10,7 @@
|
|||||||
//
|
//
|
||||||
// @match http://*.grepolis.com/game/*
|
// @match http://*.grepolis.com/game/*
|
||||||
//
|
//
|
||||||
// @version 1.1.44
|
// @version 1.1.45
|
||||||
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
@ -80,15 +80,19 @@
|
|||||||
|
|
||||||
var townCount = 0;
|
var townCount = 0;
|
||||||
for(var town_id in farm_ids) {
|
for(var town_id in farm_ids) {
|
||||||
|
console.log("prepare town " + town_id);
|
||||||
townCount++;
|
townCount++;
|
||||||
var town_id_c = town_id;
|
var town_id_c = town_id;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
console.log("get farms for town " + town_id);
|
||||||
HelperTown.townSwitch(town_id);
|
HelperTown.townSwitch(town_id);
|
||||||
HelperTown.handleInfoWindowJumpToTownClick();
|
HelperTown.handleInfoWindowJumpToTownClick();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
console.log("getting farms for town " + town_id);
|
||||||
var farmtowns = $(".farmtown_owned_on_same_island");
|
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||||
$.each(farmtowns, function(f, farmtown) {
|
$.each(farmtowns, function(f, farmtown) {
|
||||||
var farmtownId = farmtown["id"].split("_")[2];
|
var farmtownId = farmtown["id"].split("_")[2];
|
||||||
|
console.log("got farm " + farmtownId + " for town " + town_id);
|
||||||
farm_ids[town_id_c].push(+farmtownId);
|
farm_ids[town_id_c].push(+farmtownId);
|
||||||
});
|
});
|
||||||
}, 1800);
|
}, 1800);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user