Greasy Fork

Bot-c نهبة نهبة

بوت يحط فرق بين كل هجمة وهجمة

目前为 2016-01-01 提交的版本。查看 最新版本

// ==UserScript==
// @name         Bot-c نهبة نهبة
// @description  بوت يحط فرق بين كل هجمة وهجمة
// @author       Mr.Nseem
// @version      0.1
// @match        https://*.tribalwars.ae/game.php?*=am_farm
// @grant        none
// @namespace https://greasyfork.org/users/25782
// ==/UserScript==
var Vill_dif = 500;
var page_load = 10000;
setInterval(
    function(){
        $('#plunder_list tr:eq(1) td:eq(9) a').click();
        $('#plunder_list tr:eq(1)').remove();

    },Vill_dif);
setTimeout(function(){
    var x = $('#village_switch_right').attr('href');
    location.href = x;
},page_load);
/*


win = typeof(unsafeWindow) != "undefined" ? unsafeWindow : window,
$ = jQuery = win.jQuery;

$(function (){ 
 $('.row_a, .row_b').each(function() { 
 if ( $(this).find('td:eq(3)').html().match(/command\/attack\.png/) ){ 
 $(this).remove(); 
 }  
 }); 
}); 

$(function (){ 
 $("a.farm_icon_a, a.farm_icon_b, a.farm_icon_c").click(function() { 
 $(this).parent().parent().remove(); 
 }); 
}); 

$(function (){ 
 $('.row_a, .row_b').each(function() { 
 if ( $(this).find('td:eq(1)').html().match(/green/) ){ 
 $(this).find('td:eq(8),td:eq(9),td:eq(10)').css('background-color', 'green'); 
 }  
 else if ( $(this).find('td:eq(1)').html().match(/yellow/) ){ 
 $(this).find('td:eq(8),td:eq(9),td:eq(10)').css('background-color', 'yellow'); 
 } 
 else if ( $(this).find('td:eq(1)').html().match(/blue/) ){ 
 if ( $(this).find('td:eq(1)').html().match(/red_blue/) ){ 
 $(this).find('td:eq(8),td:eq(9),td:eq(10)').css('background-color', '#660066'); 
 } 
 else{  
 $(this).find('td:eq(8),td:eq(9),td:eq(10)').css('background-color', 'blue'); 
 } 
 } 
 });  
}); 
$(function (){
 $('.row_a, .row_b').each(function() { 
 if ( $(this).find('td:eq(10)').html().match(/max_loot\/0\.png/) && $(this).find('td:eq(11)').html().match(/max_loot\/0\.png/) && $(this).find('td:eq(12').html().match(/max_loot\/0\.png/)){ 
 $(this).remove(); 
 }     
 }); 
}); 

$(function (){ 
 $('.row_a, .row_b').each(function() { 
 if ( $(this).find('td:eq(10)').html().match(/farm_icon_disabled/) && $(this).find('td:eq(11)').html().match(/farm_icon_disabled/) && $(this).find('td:eq(12)').html().match(/farm_icon_disabled/)){ 
 $(this).remove(); 
 }  
 }); 
}); 


$(function(){
$("<button id='C'>C</button>").prependTo("tbody tr td tr th:eq(33)");
$("div .body table tr td:nth-child(11)").find("a").append("<span id='keke'></span>");


$("#C").click(function(){
$("div .body table tr td:nth-child(11)").find("#keke").click();
});
});

$(function(){
$("#C").each(function() {
$("tbody tr td tr th:eq(33)").find("#keke").click();
});
});

$("#am_widget_Farm .farm_icon_c").click()

$("#C").click();
$("#am_widget_Farm .farm_icon_b").click()
$(function(){
var head = document.getElementsByTagName("head")[0];
var gamedata = JSON.parse(head.innerHTML.match(/var game_data = (\{.+\})\;/)[1]);
var ViD = gamedata.village.id;
var newurl = '/game.php?village=n'+ ViD +'&order=distance&dir=asc&screen=am_farm';
the_t = setTimeout(function(){
window.document.location = newurl;
clearTimeout(the_t);
},500);
});
void(o);

*/