Last active
August 29, 2015 14:25
-
-
Save wingsuitist/27b2a4c32a8edcd39104 to your computer and use it in GitHub Desktop.
facebook invoke invite
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
/** 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