Delayed

Guei Detected

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name Delayed
// @description Guei Detected
// @author SIVRAJ
// @Email [email protected]
// @include https://*screen=am_farm*
// @version 1.0
// @namespace https://greasyfork.org/users/159045
// ==/UserScript==

var atualizarPagina = 1;
var tempo = 2500;
var x = 0;
var minhaVar = "1";
var remove_atacadas = 0;
var menu = $('#am_widget_Farm a.farm_icon_a');

var jaEnviados = $(menu).parent().parent().find('img.tooltip').length+"000";

if (remove_atacadas == 1) {
$('img').each(function() {
var tempStr = $(this).attr('src');
if (tempStr.indexOf('attack') != -1) {
$(this).addClass('tooltip');
}
});
}
if(atualizarPagina == 1) {
setInterval(
function() {
window.location.reload();
}, 30000);
}

console.log("Ja existe " + jaEnviados.substring(0,(jaEnviados.length - 3)) + " aldeia com ataque.");

var altAldTempo = parseInt($('#am_widget_Farm a.farm_icon_d').length+"000") - parseInt(jaEnviados);
console.log("Resta " + altAldTempo + " aldeias para Atacar.");

if (altAldTempo == "0") {
var altAldTempo = aleatorio(58000,62000);
} else {
var altAldTempo = parseInt(altAldTempo) + parseInt(aleatorio(14000,34000));
}
console.log("Resta " + altAldTempo + " milesegundos para alternar a aldeia.");

function aleatorio(superior,inferior) {
numPosibilidades = superior - inferior;
aleat = Math.random() * numPosibilidades;
return Math.round(parseInt(inferior) + aleat);
}



for (i = 0; i < 100; i++) {
$(menu).eq(i).each(function() {
if (!($(this).parent().parent().find('img.tooltip').length)) {
var tempoAgora = (tempo * ++x) - aleatorio(150,300);
setTimeout(function(minhaVar) {
$(minhaVar).click();
}, tempoAgora, this);
}
});
}



function altAldeia()
{
$('.arrowRight').click();
$('.groupRight').click();
}

setInterval(altAldeia, altAldTempo);

console.log("By CudoCU -> Skype: TeComi|TuaMaeTambem");