Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayremnt/2958f149be238c0485c063d7b571614e to your computer and use it in GitHub Desktop.
Save jayremnt/2958f149be238c0485c063d7b571614e to your computer and use it in GitHub Desktop.
Facebook Auto send friend requests to users in an account's list friends or in one group - no Access Token needed
/*
* Code by JayremntB, 2020
* Requirement: Old Facebook
* Please copy all the code to make sure that you will not get any errors
* Before run this script, please change to OLD facebook and navigate to an account's list friends/group members'list you want
* Example: https://www.facebook.com/marcel/friends (account) & https://www.facebook.com/groups/dongkhiit/members (group)
*/
// You can change time delay of these variables below or not (in milliseconds, 1 s = 1000 ms)
// REMEMBER: the longer the delay time you set, the bigger your chance of not getting Facebook Checkpoint
let timePerAction = 2000; // time delay between 2 requests
let timeToLoadPage = 3000; // time to expand list friends when scroll the page to the end, depends on your network speed
let totalFriendRequestsSent = 1000; // the number of users you want to send friend requests
// process, please don't modify
let _0x320b=['getAttribute','class','getElementsByClassName','_698','aria-label','Not\x20found\x20any\x20users','href','Process\x20ended','Code\x20by\x20JayremntB,\x202020','lastChild','warn','Skip','body','scrollTo','error','groups','nextSibling','length','You\x20have\x20reached\x20the\x20end\x20of\x20list\x20friends','Friend\x20requests\x20remanding:\x20','Skip:\x20','firstChild','Sent\x20friend\x20request\x20to\x20','includes','\x20-\x20','\x20remanding...','hidden_elem','textContent','nodeName','scrollHeight','_42ft\x20_4jy0\x20FriendRequestAdd\x20addButton\x20_4jy3\x20_517h\x20_51sy','_42ft\x20_4jy0\x20FriendRequestAdd\x20addButton\x20_4jy3\x20_4jy1\x20selected\x20_51sy','log','timePerAction\x20must\x20greater\x20than\x20500\x20ms','click'];(function(_0x24da31,_0x320b8b){let _0x1707ee=function(_0x73557c){while(--_0x73557c){_0x24da31['push'](_0x24da31['shift']());}};_0x1707ee(++_0x320b8b);}(_0x320b,0xfe));let _0x1707=function(_0x24da31,_0x320b8b){_0x24da31=_0x24da31-0x0;let _0x1707ee=_0x320b[_0x24da31];return _0x1707ee;};(()=>{console[_0x1707('0x17')](_0x1707('0x22')),console[_0x1707('0x17')]('-----------------------'),console['log'](_0x1707('0xa')+totalFriendRequestsSent);if(timePerAction<0x1f4)return console[_0x1707('0x5')](_0x1707('0x18'));if(window['location'][_0x1707('0x20')][_0x1707('0xe')](_0x1707('0x6'))){if(document[_0x1707('0x1c')](_0x1707('0x15'))[_0x1707('0x8')]===0x0)return console['warn'](_0x1707('0x1f'));let _0x50b307=0x0;setTimeout(function _0x4a989b(){let _0x4ca120=document['getElementsByClassName']('_42ft\x20_4jy0\x20FriendRequestAdd\x20addButton\x20_4jy3\x20_517h\x20_51sy');if(_0x4ca120[_0x1707('0x8')]===0x0||_0x50b307>_0x4ca120[_0x1707('0x8')]-0x1)return console[_0x1707('0x1')](_0x1707('0x9'));setTimeout(function _0x458ff0(){if(totalFriendRequestsSent===0x0)return console[_0x1707('0x1')](_0x1707('0x21'));if(_0x50b307+0x8>_0x4ca120[_0x1707('0x8')]-0x1){window['scrollTo'](0x0,document[_0x1707('0x3')][_0x1707('0x14')]),setTimeout(_0x4a989b,timeToLoadPage);return;}if(_0x4ca120[_0x50b307][_0x1707('0x1a')](_0x1707('0x1b'))[_0x1707('0xe')](_0x1707('0x11'))||_0x4ca120[_0x50b307][_0x1707('0x7')][_0x1707('0x7')]!==null&&_0x4ca120[_0x50b307][_0x1707('0x7')][_0x1707('0x7')][_0x1707('0x13')]==='A'){console['log'](_0x1707('0xb')+_0x4ca120[_0x50b307][_0x1707('0x1a')]('aria-label')),_0x50b307++,setTimeout(_0x458ff0,0x0);return;}_0x4ca120[_0x50b307][_0x1707('0x19')](),console[_0x1707('0x17')](_0x4ca120[_0x50b307][_0x1707('0x1a')](_0x1707('0x1e'))+_0x1707('0xf')+--totalFriendRequestsSent+'\x20remanding...'),_0x50b307++,setTimeout(_0x458ff0,timePerAction);},0x0);},0x0);}else{if(document[_0x1707('0x1c')]('_698')['length']===0x0)return console['warn']('Not\x20found\x20any\x20users');let _0x25faa9=0x0;setTimeout(function _0x378cf1(){let _0x3c7511=document[_0x1707('0x1c')](_0x1707('0x1d'));if(_0x3c7511['length']===0x0||_0x25faa9>_0x3c7511[_0x1707('0x8')]-0x1)return console[_0x1707('0x1')]('You\x20have\x20reached\x20the\x20end\x20of\x20list\x20friends');setTimeout(function _0x433147(){if(totalFriendRequestsSent===0x0)return console[_0x1707('0x1')](_0x1707('0x21'));if(_0x25faa9+0x8>_0x3c7511['length']-0x1){window[_0x1707('0x4')](0x0,document[_0x1707('0x3')]['scrollHeight']),setTimeout(_0x378cf1,timeToLoadPage);return;}if(_0x3c7511[_0x25faa9][_0x1707('0xc')][_0x1707('0x0')]['lastChild']['getAttribute'](_0x1707('0x1b'))!=='uiProfileBlockContent'){console['log'](_0x1707('0x2')),_0x25faa9++,setTimeout(_0x433147,0x0);return;}let _0x402eda=_0x3c7511[_0x25faa9][_0x1707('0xc')]['lastChild'][_0x1707('0x0')]['firstChild'][_0x1707('0x0')]['firstChild'][_0x1707('0xc')][_0x1707('0x12')];if(_0x3c7511[_0x25faa9][_0x1707('0xc')][_0x1707('0x0')]['firstChild'][_0x1707('0x0')][_0x1707('0xc')][_0x1707('0xc')]['lastChild'][_0x1707('0x13')]==='A'||_0x3c7511[_0x25faa9][_0x1707('0xc')]['lastChild'][_0x1707('0xc')][_0x1707('0x0')][_0x1707('0xc')][_0x1707('0xc')][_0x1707('0xc')][_0x1707('0x1a')](_0x1707('0x1b'))!==_0x1707('0x16')){console[_0x1707('0x17')]('Skip\x20'+_0x402eda),_0x25faa9++,setTimeout(_0x433147,0x0);return;}_0x3c7511[_0x25faa9][_0x1707('0xc')]['lastChild'][_0x1707('0xc')]['lastChild'][_0x1707('0xc')][_0x1707('0xc')][_0x1707('0xc')]['click'](),console[_0x1707('0x17')](_0x1707('0xd')+_0x402eda+_0x1707('0xf')+--totalFriendRequestsSent+_0x1707('0x10')),_0x25faa9++,setTimeout(_0x433147,timePerAction);},0x0);},0x0);}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment