Last active
December 2, 2020 13:05
-
-
Save jayremnt/a3e3010a8023b79768294c42d90dfa2e to your computer and use it in GitHub Desktop.
Facebook auto cancel friend requests sent with no Access Token needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Code by JayremntB, 2020 | |
* Requirement: New Facebook | |
* Before run this script, please change to NEW facebook and navigate to this link: https://www.facebook.com/friends/ | |
*/ | |
// You can change time delay of these variables below or not (in milliseconds, 1 s = 1000 ms) | |
// Before you change, click "View sent requests" button at left hand side to understand the meaning of each variable | |
let timePerAction = 500; // time delay between 2 actions (action = click the "Cancel request" button) | |
let timeLoadMoreFriendRequests = 3000; // time to load more friend requests sent when scroll the mid dialog to the end, depends on your network speed | |
// process, please don't modify | |
let _0x39d3=['textContent','oajrlxb2\x20tdjehn4e\x20gcieejh5\x20bn081pho\x20humdl8nn\x20izx4hr6d\x20rq0escxv\x20nhd2j8a9\x20j83agx80\x20p7hjln8o\x20kvgmc6g5\x20cxmmr5t8\x20oygrvhab\x20hcukyx3x\x20jb3vyjys\x20d1544ag0\x20qt6c0cv9\x20tw6a2znq\x20i1ao9s8h\x20esuyzwwr\x20f1sip0of\x20lzcic4wl\x20l9j0dhe7\x20abiwlrkh\x20p8dawk7l\x20beltcj47\x20p86d2i9g\x20aot14ch1\x20kzx2olss\x20cbu4d94t\x20taijpn5t\x20ni8dbmo4\x20stjgntxs\x20k4urcfbm\x20tv7at329','length','Code\x20by\x20JayremntB,\x202020','Not\x20found\x20View\x20sent\x20requests\x20button...','warn','\x20successfully!','Cancel\x20request\x20to\x20','log','click','nextSibling','scrollHeight','scrollTo','parentNode','Not\x20found\x20any\x20friend\x20request\x20sent','getElementsByClassName','firstChild','oi732d6d\x20ik7dh3pa\x20d2edcug0\x20qv66sw1b\x20c1et5uql\x20a8c37x1j\x20hop8lmos\x20enqfppq2\x20e9vueds3\x20j5wam9gi\x20knj5qynh\x20q66pz984','q5bimw55\x20rpm2j7zs\x20k7i0oixp\x20gvuykj2m\x20j83agx80\x20cbu4d94t\x20ni8dbmo4\x20eg9m0zos\x20l9j0dhe7\x20du4w35lb\x20ofs802cu\x20pohlnb88\x20dkue75c7\x20mb9wzai9\x20l56l04vs\x20r57mb794\x20kh7kg01d\x20c3g1iek1\x20otl40fxz\x20cxgpxx05\x20rz4wbd8a\x20sj5x9vvc\x20a8nywdso','getAttribute','class'];(function(_0x1ade91,_0x39d3ee){let _0x21f773=function(_0x576913){while(--_0x576913){_0x1ade91['push'](_0x1ade91['shift']());}};_0x21f773(++_0x39d3ee);}(_0x39d3,0xd4));let _0x21f7=function(_0x1ade91,_0x39d3ee){_0x1ade91=_0x1ade91-0x0;let _0x21f773=_0x39d3[_0x1ade91];return _0x21f773;};(()=>{console['log'](_0x21f7('0x1'));if(timePerAction<0x12c)return console[_0x21f7('0x3')]('time\x20per\x20action\x20must\x20be\x20set\x20>=\x20300\x20ms');let _0xccf854=document[_0x21f7('0xd')](_0x21f7('0xf'));if(_0xccf854[_0x21f7('0x0')]===0x0)return console['warn'](_0x21f7('0x2'));_0xccf854[_0xccf854[_0x21f7('0x0')]-0x1][_0x21f7('0xb')][_0x21f7('0x7')](),setTimeout(()=>{let _0x112bb0=document[_0x21f7('0xd')](_0x21f7('0x10'));if(_0x112bb0[_0x21f7('0x0')]===0x0)return console[_0x21f7('0x3')](_0x21f7('0xc'));nextFriendRequestSent=_0x112bb0[0x0]['firstChild'][_0x21f7('0xe')][_0x21f7('0x8')];let _0x34979f=0x0;while(0x1){_0x34979f++;if(nextFriendRequestSent[_0x21f7('0x8')]===null||nextFriendRequestSent['nextSibling']!==null&&nextFriendRequestSent[_0x21f7('0x8')][_0x21f7('0xe')][_0x21f7('0x11')](_0x21f7('0x12'))!==null)break;nextFriendRequestSent=nextFriendRequestSent[_0x21f7('0x8')];}let _0x1b9051=document[_0x21f7('0xd')](_0x21f7('0x14')),_0x40ed5a=_0x1b9051[_0x21f7('0x0')]-_0x34979f;setTimeout(function _0x4f5573(){let _0x4e98ec=document[_0x21f7('0xd')](_0x21f7('0x14'));if(_0x40ed5a>_0x4e98ec['length']-0x1)return console[_0x21f7('0x3')](_0x21f7('0xc'));setTimeout(function _0xc8fb1a(){if(_0x40ed5a>_0x4e98ec[_0x21f7('0x0')]-0x1){document[_0x21f7('0xd')](_0x21f7('0x10'))[0x0][_0x21f7('0xa')](0x0,document[_0x21f7('0xd')](_0x21f7('0x10'))[0x0][_0x21f7('0x9')]),setTimeout(_0x4f5573,timeLoadMoreFriendRequests);return;}_0x4e98ec[_0x40ed5a][_0x21f7('0x7')]();let _0x465333=_0x4e98ec[_0x40ed5a][_0x21f7('0xb')][_0x21f7('0xb')][_0x21f7('0xb')][_0x21f7('0xb')]['parentNode'][_0x21f7('0xe')]['firstChild'][_0x21f7('0xe')][_0x21f7('0x13')];console[_0x21f7('0x6')](_0x21f7('0x5')+_0x465333+_0x21f7('0x4')),setTimeout(_0xc8fb1a,timePerAction);},0x0);},0x0);},0x7d0);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment