Created
December 6, 2022 11:45
-
-
Save NeilMasters/c2b4526ad671ec82383977246ed9c40f to your computer and use it in GitHub Desktop.
Javascript to delete all of your facebook photos without having to do it manually.
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
/** | |
* Run this in your browser console and it will delete all of your facebook photos | |
* one after another. | |
* | |
* You will most likely need to fiddle with the css selectors but its basically: | |
* 1. Click edit of first photo | |
* 2. Click delete in dropdown menu | |
* 3. Click confirm in dialog | |
*/ | |
setInterval(() => { | |
document.querySelector('.x9f619 .xfr5jun .x14ctfv').click(); | |
setTimeout(() => { | |
document.querySelector('div.x1i10hfl:nth-child(3)').click(); | |
setTimeout(() => { | |
document.querySelector('div.x4vbgl9:nth-child(1) > div:nth-child(2) > div:nth-child(1)').click(); | |
}, 3000); | |
}, 3000); | |
}, 10000); |
Thanks!
Still working. Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It worked like a charm today!
Thanks for this great script