Skip to content

Instantly share code, notes, and snippets.

@jayremnt
Last active June 21, 2021 16:32
Show Gist options
  • Save jayremnt/6951c0ec26e2a3f93003afb4d60d1017 to your computer and use it in GitHub Desktop.
Save jayremnt/6951c0ec26e2a3f93003afb4d60d1017 to your computer and use it in GitHub Desktop.
Facebook auto unlike pages with no Access Token needed
/*
* Code by JayremntB, 2020
* Requirement: Old Facebook
* Before run this script, please change to OLD facebook and navigate to this link: https://www.facebook.com/pages/?category=liked, press Ctrl + Shift + J or right-click/Inspect, choose Console
* If you want to Like pages again, run again this script
*/
// You can change time delay of these variables below or not (in milliseconds, 1 s = 1000 ms)
let timePerAction = 1000; //time delay between 2 actions
let timeToLoadPage = 1000; // time to load more pages when scroll current page to the end, depends on your network speed
// process, please don't change anything
let _0x5ce7=['log','click','_7ywj\x20fsl\x20fwb\x20fcb','timePerAction\x20must\x20greater\x20than\x20500','error','textContent','warn','firstChild','Code\x20by\x20JayremntB,\x202020','getElementsByClassName','length','_271k\x20_271l\x20_271m\x20_1qjd\x20_3-9a\x20_7tvm\x20_7tv2\x20_7tv4','Not\x20found\x20any\x20page','\x20successfully!','Unliked\x20','scrollHeight','body','scrollTo'];(function(_0x4e5649,_0x5ce70d){let _0x28bd46=function(_0xb43749){while(--_0xb43749){_0x4e5649['push'](_0x4e5649['shift']());}};_0x28bd46(++_0x5ce70d);}(_0x5ce7,0x1ad));let _0x28bd=function(_0x4e5649,_0x5ce70d){_0x4e5649=_0x4e5649-0x0;let _0x28bd46=_0x5ce7[_0x4e5649];return _0x28bd46;};(()=>{console[_0x28bd('0x3')](_0x28bd('0xb'));if(timePerAction<0x1f4)return console[_0x28bd('0x7')](_0x28bd('0x6'));let _0x3fa9db=0x0;setTimeout(function _0x35e5ba(){let _0x2be448=document[_0x28bd('0xc')](_0x28bd('0xe'));if(_0x3fa9db>_0x2be448[_0x28bd('0xd')]-0x1||_0x2be448[_0x28bd('0xd')]===0x0)return console[_0x28bd('0x9')](_0x28bd('0xf'));setTimeout(function _0x471989(){if(_0x3fa9db>_0x2be448[_0x28bd('0xd')]-0x1){window[_0x28bd('0x2')](0x0,document[_0x28bd('0x1')][_0x28bd('0x0')]),setTimeout(_0x35e5ba,timeToLoadPage);return;}_0x2be448[_0x3fa9db][_0x28bd('0x4')]();let _0x443ccf=document['getElementsByClassName'](_0x28bd('0x5'))[_0x3fa9db++][_0x28bd('0xa')][_0x28bd('0xa')][_0x28bd('0x8')];console[_0x28bd('0x3')](_0x28bd('0x11')+_0x443ccf+_0x28bd('0x10')),setTimeout(_0x471989,timePerAction);},0x0);},0x0);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment