- // ==UserScript==
- // @name ChillFarm
- // @namespace http://tampermonkey.net/
- // @version 2.0.1
- // @description C Clicker
- // @author Ercho
- // @match https://*.plemiona.pl/game.php?village=*&screen=am_farm*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- (function (){
- $("a.farm_icon_c, a.farm_icon_b, a.farm_icon_a").click(function() {$(this).closest("tr").remove();});
- })();
- function build1(){
- var x = document.createElement('button');
- x.setAttribute('onclick',"function slij(){var evt = document.createEvent('MouseEvents');evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);var gt = document.getElementsByClassName('farm_icon_a')[1];gt.dispatchEvent(evt);var timez = parseInt(270+(Math.random()*100*Math.random()));setTimeout(slij, timez);}slij();");
- x.setAttribute('style','width: 30px; height: 20px; background-color: #f00; text-align: center;');
- x.innerHTML = "A";
- document.getElementsByClassName('vis')[0].appendChild(x);
- }
- function build2(){
- var x = document.createElement('button');
- x.setAttribute('onclick',"function slij(){var evt = document.createEvent('MouseEvents');evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);var gt = document.getElementsByClassName('farm_icon_b')[1];gt.dispatchEvent(evt);var timez = parseInt(270+(Math.random()*100*Math.random()));setTimeout(slij, timez);}slij();");
- x.setAttribute('style','width: 30px; height: 20px; background-color: #0f0; text-align: center;');
- x.innerHTML = "B";
- document.getElementsByClassName('vis')[0].appendChild(x);
- }
- function build3(){
- var x = document.createElement('button');
- x.setAttribute('onclick',"function slij(){var evt = document.createEvent('MouseEvents');evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);var gt = document.getElementsByClassName('farm_icon_c')[0];gt.dispatchEvent(evt);var timez = parseInt(270+(Math.random()*100*Math.random()));setTimeout(slij, timez);}slij();");
- x.setAttribute('style','width: 30px; height: 20px; background-color: #00f; text-align: center;');
- x.innerHTML = "C";
- document.getElementsByClassName('vis')[0].appendChild(x);
- }
- build1();
- build2();
- build3();
- })();