Advertisement
7zgi

friend requests

Feb 10th, 2020
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*______________________________________________________________________________
  2. ********************************************************************************
  3. WriterScriptIs  : Salim Fadhil                                                 *
  4. VersionScript   : 1.1v                                                         *
  5. DateWroteScript : 13-08-2019                                                   *
  6. DateUpdateScript: 10-02-2020                                                   *
  7. URL            : https://forum.tribalwars.ae/index.php?members/abu-rajih.40926/*
  8. _______________________________________________________________________________*
  9. ********************************************************************************
  10.        ########   ##                    #########             $$  $$  ##       *
  11.       ##      ##  ##                    ##      ##   ######   $$  $$  ##       *
  12.       ##      ##  ##                    ##      ##         #          ##       *
  13.       ##########  ## ####  ##    ##     ##     ##   ########  ##  ##  #######  *
  14.       ##      ##  ###   ## ##    ##     ########    ##    ##  ##  ##  ##    ## *
  15.       ##      ##  ##    ## ##    ##     ##     ##   ##    ##  ##  ##  ##    ## *
  16.       ##      ##  ##   ##  ##    ## $$  ##      ##  ##    ##  ##  ##  ##    ## *
  17.       ##      ##  ######    #####   $$  ##       ## ###### #  ##  ##  ##    ## *
  18.                                                               ##               *
  19.                                                          ##  ##                *
  20.                                                           ####                 *
  21. _______________________________________________________________________________*
  22. *******************************************************************************/
  23.  
  24.  
  25. javascript:
  26. (function($) {
  27.  
  28. if(window.game_data.screen != 'ranking'){
  29.    window.UI.InfoMessage('السكربت يعمل من صفحة ترتيب اللاعبين, سيتم نقلك الى مكان عمل السكربت ...', 3000 ,'success');
  30.   window.location.href = '/game.php?village='+window.game_data.village.id+'&screen=ranking';
  31. return false;
  32. }
  33. else{
  34.     window.Developer = ["Salim Fadhil" , 'AbuRajih' ,'salim.rageh45@outlook.com' , '+96899745412' , '1.1' , 'https://forum.tribalwars.ae/index.php?members/abu-rajih.40926'];
  35. $('#player_ranking_table').before(`
  36. <center>
  37. <table align="center" id='CopyRight'>
  38. <thead>
  39. <tr>
  40. <th style='width:50px;text-align:center;'>المبرمج</th>
  41.   <th style='font-size:16px; font-weight:bold;'>:</th>
  42.   <th style='width:90px;text-align:center;'><a href=`+window.Developer[5]+` title=`+window.Developer[1]+` target='_blank'>`+window.Developer[0]+`</a></th>
  43. </tr>
  44. <tr>
  45. <th style='width:50px;text-align:center;'>E-Mail</th>
  46.   <th style='font-size:16px; font-weight:bold;'>:</th>
  47.   <th style='width:90px;text-align:center;'><a href='mailto:`+window.Developer[2]+`&subject=استفسار بخصوص السكربت' >`+window.Developer[2]+`</a></th>
  48. </tr>
  49. <tr>
  50. <th style='width:50px;text-align:center;'>WhatsApp</th>
  51.   <th style='font-size:16px; font-weight:bold;'>:</th>
  52.   <th style='width:90px;text-align:center;'><a href='https://api.whatsapp.com/send?phone=`+window.Developer[3]+`' target='_blank' >`+window.Developer[3]+`</a></th>
  53. </tr>
  54. </thead>
  55. </table>
  56. </center>
  57.   <style>
  58.   #CopyRight,#CopyRight th{border:1px solid black !important;background:#eee;}
  59.   #CopyRight th , #CopyRight th a{background: #eddab0 !important;font-family: 'times new roman', sans-serif;font-size:15px;}
  60.   </style>
  61. `);
  62.     $(function () {
  63.     $('#player_ranking_table tbody tr').each(
  64.     function (){
  65.     $(this).find('td:eq(0)').after('<td></td>');
  66. });
  67. });
  68.  
  69.     $(function () {
  70.     $('#player_ranking_table th:eq(0)').after('<th>طلب صداقة</th>');
  71.     $('#player_ranking_table tbody tr').each(function () {
  72.     var url = $(this).find('td:eq(2)').find('a').attr('href');
  73.     var Rajih = $(this).find('td:eq(1)');
  74.     $.ajax({
  75.     url: url,
  76.     datatype: 'xml',
  77.     success: function (data) {
  78.         window.index = 0;
  79.     window.Salim = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  80.     window.setAa = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  81.  
  82.  
  83.         if(!window.Salim.match(/&action=add_friend&/g)){
  84.             window.index++;
  85. console.log('AbuRajih Script to send friend Requests =)' + window.index);
  86.             window.Salim1 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  87.             window.setAa1 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  88.         }
  89.         else{
  90.             $(Rajih).append(window.setAa);
  91.         }
  92.  
  93.        if(!window.Salim1.match(/&action=add_friend&/g)){
  94.             window.index++;
  95. console.log('AbuRajih Script to send friend Requests =)' + window.index);
  96.             window.Salim2 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  97.             window.setAa2 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  98.        }
  99.         else{
  100.             $(Rajih).append(window.setAa1);
  101.         }
  102.  
  103.        if(!window.Salim2.match(/&action=add_friend&/g)){
  104.             window.index++;
  105. console.log('AbuRajih Script to send friend Requests =)' + window.index);
  106.             window.Salim3 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  107.             window.setAa3 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  108.        }
  109.         else{
  110.             $(Rajih).append(window.setAa2);
  111.         }
  112.  
  113.        if(!window.Salim3.match(/&action=add_friend&/g)){
  114.             window.index++;
  115. console.log('AbuRajih Script to send friend Requests =)' + window.index);
  116.             window.Salim4 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  117.             window.setAa4 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  118.        }
  119.         else{
  120.             $(Rajih).append(window.setAa3);
  121.         }
  122.  
  123.        if(!window.Salim4.match(/&action=add_friend&/g)){
  124.             window.index++;
  125. console.log('AbuRajih Script to send friend Requests =)' + window.index);
  126.             window.Salim5 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  127.             window.setAa5 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  128.        }
  129.         else{
  130.             $(Rajih).append(window.setAa4);
  131.         }
  132.        if(!window.Salim5.match(/&action=add_friend&/g)){
  133.             window.index++;
  134. console.log('AbuRajih Script to send friend Requests =)' + window.index);
  135.             window.Salim6 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).find('a').attr('href');
  136.             window.setAa6 = $(data).find('#content_value > table > tbody > tr > td:nth-child(1) > table:nth-child(2) > tbody > tr > td').eq(window.index).html();
  137.        }
  138.         else{
  139.             $(Rajih).append(window.setAa5);
  140.         }
  141. }
  142. });
  143. });
  144. });
  145. }
  146. })(window.jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement