Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name FARMA test
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @include https://*.plemiona.pl/game.php?village=*&screen=am_farm&order=distance&dir=asc&Farm_page=1
- // @grant none
- // ==/UserScript==
- var arr=$("a.farm_icon_a" ),
- i=0;
- (function rT() {
- setTimeout(function(){
- $(arr[i++]).click();
- if(i>arr.length)
- return;
- rT();
- },getRandomArbitary(400, 1200));
- })();
- setTimeout(function() {
- location.reload();
- }, getRandomArbitary(35 * 60, 50 * 60) * 1000);
- function getRandomArbitary(min, max) {
- return Math.random() * (max - min) + min;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement