Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
7.2 kB
8
Indexable
Never
// USTAWIENIA ZBIERAKA MASOWEGO
// PRZED PIERWSZYM URUCHOMIENIEM USTAW 60, BY ZDĄŻYĆ WYBRAĆ CZAS RUNU
//
var zmass =2; //CZAS W SEKUNDACH OD KLIKANIA PRZYCISKOW AUTOMATYCZNIE
//
// ZBIERAK SINGLE
// DODAJ TEN SKRYPT: https://greasyfork.org/en/scripts/453881-auto-zbierak-single


// ==UserScript==
// @name         Pasek Skrótów Tamper v3
// @namespace    http://tampermonkey.net/
// @version      0.9
// @description  try to take over the world!
// @author       Perlito x Panoramix
// @match        https://*.plemiona.pl/game.php?*
// @match        https://*.plemiona.pl/game.php?village=*&screen=place&mode=scavenge_mass
// @match        https://*.plemiona.pl/game.php?village=*&screen=overview_villages&mode=combined
// @match        https://*.plemiona.pl/game.php?screen=overview_villages&screen=overview_villages&mode=combined
// @match        https://*.plemiona.pl/game.php?village=*&screen=storage
// @match        https://*.plemiona.pl/game.php?screen=overview_villages&&screen=storage
// @match        https://*.plemiona.pl/game.php?village=*&screen=ranking
// @match        https://*.plemiona.pl/game.php?screen=overview_villages&screen=ranking
// @match        https://*.plemiona.pl/game.php?village=*&screen=am_troops&mode=template
// @match        https://*.plemiona.pl/game.php?village=*&screen=ranking&mode=player&offset
// @include      **mode=scavenge_mass*
// @icon         https://www.google.com/s2/favicons?domain=plemiona.pl
// @grant        none
// ==/UserScript==

var gui_content;
var styl;
var start = window.localStorage.getItem("zb");
var guwno = window.localStorage.getItem("zb1");
var seks = window.localStorage.getItem("zb2");
var tymek = window.localStorage.getItem("zb3");
var aneta = window.localStorage.getItem("zb4");
var tatanatana = window.localStorage.getItem("zb5");
var template = window.localStorage.getItem("zb7");
var ranking = window.localStorage.getItem("zb8");
var swiat = document.location.toString();
var premiumBtnEnabled=false

function myFunction() {
  document.getElementById("myDropdown").classList.toggle("show");
}

// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
  if (!event.target.matches('.dropbtn')) {
    var dropdowns = document.getElementsByClassName("dropdown-content");
    var i;
    for (i = 0; i < dropdowns.length; i++) {
      var openDropdown = dropdowns[i];
      if (openDropdown.classList.contains('show')) {
        openDropdown.classList.remove('show');
      }
    }
  }
}

swiat = swiat.substring(0, swiat.indexOf("&"));
//prompt(typeof (swiat),swiat);
styl = `
<style>
.dropbtn {
  background-color: #008000;
  color: blue;
  padding: 18px;
  font-size: 18px;
  border: none;
  cursor: pointer;}
.dropbtn:hover, .dropbtn:focus {
  background-color: #008000;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #008000;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown a:hover {background-color: #008000;}
.show {display: block;}
</style>`;
gui_content =`<tr>
<div class="dropdown">
  <button onclick="myFunction()" class="dropbtn">TAMPER SHORT</button>
  <div id="myDropdown" class="dropdown-content">
   <a><button id="A" class="btn" onclick="window.location='` + swiat + `&amp;screen=place&mode=scavenge_mass'; window.localStorage.setItem('zb','1')">ZBIERAK MASSOWY</button>
   <button id="G" class="btn" onclick="window.location='` + swiat + `&amp;&screen=place&mode=scavenge'; window.localStorage.setItem('zb6','1')">ZBIERAK SINGLE AUTO</button>
   <button id="B" class="btn" onclick="window.location='` + swiat + `&amp;screen=overview_villages&mode=combined'; window.localStorage.setItem('zb1','1')">PLANER WYSYŁKI ATAKÓW</button>
   <button id="C" class="btn" onclick="window.location='` + swiat + `&amp;&screen=storage'; window.localStorage.setItem('zb2','1')">WYSLIJ SURKI DO WIOSKI</button>
   <button id="D" class="btn" onclick="window.location='` + swiat + `&amp;&screen=overview_villages&mode=prod'; window.localStorage.setItem('zb3','1')">BALANS SPICHLERZY</button>
   <button id="E" class="btn" onclick="window.location='` + swiat + `&amp;&screen=place&mode=scavenge_mass'; window.localStorage.setItem('zb4','1')">ODBLOKUJ ZBIERACTWO</button>
   <button id="F" class="btn" onclick="window.location='` + swiat + `&amp;&screen=ranking'; window.localStorage.setItem('zb5','1')">PODGLAD AKT. ZBIERAKA</button>
   <button id="H" class="btn" onclick="window.location='` + swiat + `&amp;&screen=am_troops&mode=template'; window.localStorage.setItem('zb7','1')">TEMPLATE REKRUTACJI MK</button>
   <button id="I" class="btn" onclick="window.location='` + swiat + `&amp;&screen=ranking&mode=player'; window.localStorage.setItem('zb8','1')">STATY PLEMIENNE + SOJUSZNIK</button><a>
  </div>
</div>
   </tr>`;

//alert(document.querySelector("head").innerHTML);

    document.querySelector("head").innerHTML = document.querySelector("head").innerHTML + styl;

    document.querySelector("#header_info > tbody").innerHTML = document.querySelector("#header_info > tbody").innerHTML + gui_content;

window.localStorage.setItem("zb","0");
//alert(window.localStorage.getItem("zb"));
if(start=="1"){
         $.getScript('https://shinko-to-kuma.com/scripts/massScavenge.js')
}

window.localStorage.setItem("zb1","0");
//alert(window.localStorage.getItem("zb"));
if(guwno=="1"){
         javascript:$.getScript('https://twscripts.dev/scripts/massCommandTimer.js')
}

window.localStorage.setItem("zb2","0");
//alert(window.localStorage.getItem("zb"));
if(seks=="1"){
         javascript:$.getScript('https://shinko-to-kuma.com/scripts/res-senderV2.js')
}

window.localStorage.setItem("zb3","0");
//alert(window.localStorage.getItem("zb"));
if(tymek=="1"){
         javascript:$.getScript("https://shinko-to-kuma.com/scripts/WHBalancerShinkoToKuma.js");
}

window.localStorage.setItem("zb4","0");
//alert(window.localStorage.getItem("zb"));
if(aneta=="1"){
         javascript:$.getScript('https://twscripts.dev/scripts/massUnlockScav.js');
}

window.localStorage.setItem("zb5","0");
//alert(window.localStorage.getItem("zb"));
if(tatanatana=="1"){
         javascript:$.getScript('https://shinko-to-kuma.com/scripts/scavengingOverview.js');
}

window.localStorage.setItem("zb7","0");
//alert(window.localStorage.getItem("zb"));
if(template=="1"){
         javascript:$.getScript('https://twscripts.dev/scripts/troopTemplatesManager.js');
}

window.localStorage.setItem("zb8","0");
//alert(window.localStorage.getItem("zb"));
if(ranking=="1"){
         javascript:$.getScript('https://twscripts.dev/scripts/tribeStatsTool.js');
}

setTimeout(()=>$("#sendMass").click(), zmass*1000*(1+0.2*Math.random()));

setTimeout(()=>{
    $("[id=sendMass]").each((i, btn)=>{
        setTimeout(()=>sendGroup(i, false),1000*(i*zmass/3 + Math.random()*zmass/6))
    })
}, zmass*2000*(1+0.2*Math.random()));