Skip to content

Instantly share code, notes, and snippets.

@zfelegyhazi
zfelegyhazi / gist:11bde82d1137783b5abe
Created August 3, 2014 19:14
Facebook - accept all new friend request (08/2014)
var a = document.getElementsByClassName("_42ft _4jy0 _4jy3 _4jy1 selected");
for(var i=0; i<a.length; i++) { if (a[i].innerHTML == 'Confirm'){ a[i].click(); } }