Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Deletes all Facebook friend requests, execute on
var x = document.evaluate('//input[@value="Delete Request"]', document.documentElement, null, XPathResult.ANY_TYPE, null);
// gotta build an array of the elements, iterators throw exceptions if you modify the DOM from under them
var elements = [];
var thisNode = x.iterateNext();
while (thisNode) {
thisNode = x.iterateNext();
elements.forEach(function(e) {;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.