Skip to content

Instantly share code, notes, and snippets.

@wingsuitist
Last active August 29, 2015 14:25
Show Gist options
  • Save wingsuitist/27b2a4c32a8edcd39104 to your computer and use it in GitHub Desktop.
Save wingsuitist/27b2a4c32a8edcd39104 to your computer and use it in GitHub Desktop.
facebook invoke invite
/** never use this, this is only proove of concept for educational purpose **/
inviteA = document.getElementsByTagName('a'); for(var i = 0; i < inviteA.length; i++) { if(inviteA[i].innerHTML.indexOf("Invite") > -1) {console.log(inviteA[i].innerHTML);inviteA[i].style.color = "red";console.log(inviteA[i].attributes.ajaxify);xmlhttp=new XMLHttpRequest();xmlhttp.open("GET","inviteA[i].attributes.ajaxify",true);xmlhttp.send();};}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment