Skip to content

Instantly share code, notes, and snippets.

@theg00s3
Created October 6, 2020 05:52
Show Gist options
  • Save theg00s3/351086437e494d5e2ab00a681b9beb05 to your computer and use it in GitHub Desktop.
Save theg00s3/351086437e494d5e2ab00a681b9beb05 to your computer and use it in GitHub Desktop.
Deletes all facebook saved links and posts
// you may have to change the "_5voj" to whatever appears as the first part of the "<i class="_5voj img sp_DYfg8GcjZtl_2x sx_6cd9ce"></i>" on facebook.com/saved/all
//you have to scroll down as far as you want to go down the page
var myVar = setInterval(function(){
var items = document.getElementsByClassName("_5voj");
clearInterval(myVar);
var items = document.getElementsByClassName("_5voj");
for (var i = 0; i < items.length; i++)
items[i].click();
alert("done");
}, 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment