// ==UserScript==
// @name Wybijanie monet
// @namespace http://tampermonkey.net/
// @version 0.6
// @description try to take over the world!
// @author You
// @match https://*.plemiona.pl/*screen=snob*
// @grant none
// ==/UserScript==
///////////// USER SETTINGS ///////////
coIleOdswiezenieStala = 1000 * 120 // 1000 ms = 1 sekunda, 120 * 1000 = 2 minuty
coIleOdswiezenieZmienna = 10 * 1000 // 1000 ms = 1 senunda
//////////////////////////////////////
if (sessionStorage.getItem('auto') == '1') {
start_disabled = 'disabled';
stop_disabled = '';
start();
} else {
start_disabled = '';
stop_disabled = 'disabled';
}
$("#content_value").prepend(`<div><button id='start' class='btn' ${start_disabled}>START</button> <button id='end' class='btn' ${stop_disabled}>STOP</button> <span id="counter"></span></div>`)
function start() {
setTimeout(function() {
$("#coin_mint_fill_max").click()
setTimeout(function() {
$("input[value='Wybić']").click()
counter = 60
setInterval(function() {
counter = counter - 1
$("#counter").text('Next refresh in '+counter+' seconds')
},1000)
setTimeout(function() {
location.reload();
},coIleOdswiezenieStala + coIleOdswiezenieZmienna * Math.random())
},1000)
},3000)
}
$(document.body).on('click','#start',()=>{
sessionStorage.setItem('auto','1')
window.location.reload()
})
$(document.body).on('click','#end',()=>{
sessionStorage.setItem('auto','0')
window.location.reload()
})
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}