/ ‘grepolis.user.js’
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
//
|
//
|
||||||
// @match http://*.grepolis.com/game/*
|
// @match http://*.grepolis.com/game/*
|
||||||
//
|
//
|
||||||
// @version 1.1.48
|
// @version 1.1.49
|
||||||
// @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==
|
||||||
|
|
||||||
@ -98,7 +98,7 @@
|
|||||||
});
|
});
|
||||||
$(town_countdown).append('<br />');
|
$(town_countdown).append('<br />');
|
||||||
}
|
}
|
||||||
}, townCount * 5000);
|
}, townCount * 3000);
|
||||||
|
|
||||||
$("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("<select id=choosefarmduration><option value=-1>disable</option><option value=300 selected>5min</option><option value=600>10min</option><option value=1200>20min</option><option value=2400>40min</option><option value=5400>90min</option><option value=10800>3h</option><option value=14400>4h</option><option value=28800>8h</option></select>" + GM_info.script.version);
|
$("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("<select id=choosefarmduration><option value=-1>disable</option><option value=300 selected>5min</option><option value=600>10min</option><option value=1200>20min</option><option value=2400>40min</option><option value=5400>90min</option><option value=10800>3h</option><option value=14400>4h</option><option value=28800>8h</option></select>" + GM_info.script.version);
|
||||||
var choose = $("#choosefarmduration")[0];
|
var choose = $("#choosefarmduration")[0];
|
||||||
@ -108,22 +108,22 @@
|
|||||||
}, 15000);
|
}, 15000);
|
||||||
|
|
||||||
function getFarmsFor(xTownId, xTownCount) {
|
function getFarmsFor(xTownId, xTownCount) {
|
||||||
setTimeout(function() {
|
setTimeout(
|
||||||
console.log("get farms for town " + xTownId);
|
function() {
|
||||||
HelperTown.townSwitch(xTownId);
|
console.log(xTownCount + ") get farms for town " + xTownId);
|
||||||
setTimeout(function() {
|
HelperTown.townSwitch(xTownId);
|
||||||
HelperTown.handleInfoWindowJumpToTownClick();
|
HelperTown.handleInfoWindowJumpToTownClick();
|
||||||
setTimeout(function() {
|
setTimeout(
|
||||||
console.log("getting farms for town " + xTownId);
|
function() {
|
||||||
var farmtowns = $(".farmtown_owned_on_same_island");
|
console.log("getting farms for town " + xTownId);
|
||||||
$.each(farmtowns, function(f, farmtown) {
|
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||||
var farmtownId = farmtown["id"].split("_")[2];
|
$.each(farmtowns, function(f, farmtown) {
|
||||||
console.log("got farm " + farmtownId + " for town " + xTownId);
|
var farmtownId = farmtown["id"].split("_")[2];
|
||||||
farm_ids[xTownId].push(+farmtownId);
|
console.log("got farm " + farmtownId + " for town " + xTownId);
|
||||||
});
|
farm_ids[xTownId].push(+farmtownId);
|
||||||
}, 1800);
|
});
|
||||||
}, 1800);
|
}, 1800);
|
||||||
}, xTownCount*4000);
|
}, xTownCount*2200);
|
||||||
}
|
}
|
||||||
|
|
||||||
function log(xText) {
|
function log(xText) {
|
||||||
|
Reference in New Issue
Block a user