Last active
February 24, 2022 21:01
-
-
Save JamesMarino/3b5d08e1e56140cad4ad6e3a1e69a59b to your computer and use it in GitHub Desktop.
Unlike All Pages Facebook
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
// 1. Navigate to https://www.facebook.com/pages/?category=liked | |
// 2. Open up console and run the below, it will unlike all the current shown liked pages | |
const buttons = document.getElementsByTagName('button'); | |
const likedText = 'Liked'; | |
for (let button of buttons) { | |
if (button.innerHTML && button.innerHTML.includes()) { | |
button.click(likedText); | |
} | |
} |
Any suggestions for an improvement @ahmedcfx - Facebook must have updated the HTML structure on the page. Could look into an official API - maybe they have one now?
There you go: https://gist.github.com/SAFAD/dfc16d4d485aa78031d47c458e7b652e
works as of 24/02/2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nope its not working