Created
January 29, 2019 11:31
-
-
Save digggggggggg/b51b31dbd4cb73a87d0379a9bfe45e6f to your computer and use it in GitHub Desktop.
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
/* | |
### use at your own risk ### | |
### do not use at all if you don't know what this does ### | |
1. go to https://www.facebook.com/{YOUR_USERNAME}/likes_all | |
2. open console and execute the code below. | |
*/ | |
setInterval( ()=>{ | |
[].slice.call(document.querySelectorAll('.PageLikeButton')).filter(x=>x.innerText.replace(/[\W]/gi,'')==='Liked').slice(0,1).map(x=>x.click()); | |
setTimeout(()=> { [].slice.call(document.querySelectorAll('.InterestListMenuDisconnect a')).filter(x=>x.innerText.replace(/[\W]/gi,'')=='Unlike').map(x=>{x.click(); x.remove()}); }, 500); | |
window.scrollTo(0,document.body.scrollHeight); | |
},1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment