/ ‘grepolis.user.js’
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
//
|
//
|
||||||
// @match http://*.grepolis.com/game/*
|
// @match http://*.grepolis.com/game/*
|
||||||
//
|
//
|
||||||
// @version 1.0.57
|
// @version 1.0.58
|
||||||
// @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==
|
||||||
|
|
||||||
@ -23,7 +23,7 @@
|
|||||||
farm_ids = [20466, 20472, 20471];
|
farm_ids = [20466, 20472, 20471];
|
||||||
farm_ids.forEach(function(xFarmId) {
|
farm_ids.forEach(function(xFarmId) {
|
||||||
console.log("Setting timer to 5s for Farm " + xFarmId);
|
console.log("Setting timer to 5s for Farm " + xFarmId);
|
||||||
setTimeout(getWaresTick(xFarmId), 5000);
|
setTimeout(getWaresTick(xFarmId), 5000 + rand(5));
|
||||||
});
|
});
|
||||||
|
|
||||||
var logWindow = new GPWindow(-1, null);
|
var logWindow = new GPWindow(-1, null);
|
||||||
@ -83,7 +83,7 @@
|
|||||||
var wnd = GPWindowMgr.getWindowById(windowId);
|
var wnd = GPWindowMgr.getWindowById(windowId);
|
||||||
if(wnd == undefined){
|
if(wnd == undefined){
|
||||||
windows[xFarmId] = undefined;
|
windows[xFarmId] = undefined;
|
||||||
timeout = 50;
|
timeout = rand(20);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +94,7 @@
|
|||||||
wnd.close();
|
wnd.close();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
}
|
}
|
||||||
timeout = 50;
|
timeout = rand(20);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user