/ ‘grepolis.user.js’
This commit is contained in:
parent
294e97a271
commit
a106c8dedc
@ -10,12 +10,13 @@
|
|||||||
//
|
//
|
||||||
// @match http://*.grepolis.com/game/*
|
// @match http://*.grepolis.com/game/*
|
||||||
//
|
//
|
||||||
// @version 1.0.58
|
// @version 1.0.59
|
||||||
// @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==
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
farmDuration = 300;
|
||||||
lastAmounts = "";
|
lastAmounts = "";
|
||||||
console.log("Initializing...");
|
console.log("Initializing...");
|
||||||
windows = {};
|
windows = {};
|
||||||
@ -26,6 +27,11 @@
|
|||||||
setTimeout(getWaresTick(xFarmId), 5000 + rand(5));
|
setTimeout(getWaresTick(xFarmId), 5000 + rand(5));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.onclose = function() {
|
||||||
|
alert("test");
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
var logWindow = new GPWindow(-1, null);
|
var logWindow = new GPWindow(-1, null);
|
||||||
logWindow.createWindow();
|
logWindow.createWindow();
|
||||||
logWindowElement = $(logWindow.getElement());
|
logWindowElement = $(logWindow.getElement());
|
||||||
@ -42,6 +48,12 @@
|
|||||||
"top": "auto"
|
"top": "auto"
|
||||||
});
|
});
|
||||||
logWindowElement.empty();
|
logWindowElement.empty();
|
||||||
|
$("#ui-id-1").empty().append("<select id=choosefarmduration><option value=300>5min</option><option value=1200>20min</option><option value=5400>90min</option><option value=14400>4h</option></select>");
|
||||||
|
var choose = $("#choosefarmduration")[0];
|
||||||
|
choose.onchange = function() {
|
||||||
|
farmDuration = this.value;
|
||||||
|
log("Duration changed to: " + farmDuration);
|
||||||
|
}
|
||||||
|
|
||||||
function log(xText) {
|
function log(xText) {
|
||||||
var date = new Date(); // Timestamp to prepend
|
var date = new Date(); // Timestamp to prepend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user