ajax - Follow Ajaxify Link with Javascript -
I'm trying to create a greasemonkey script that will hit Facebook automatically (okay, stop) This is only specific to the specific people I have specified. It is easy to do this because I can display the HTML which demonstrates this attack by using its special UID:
document.getElementById ("poke_uidhere "). InnerHTML; This generates code / link / ajax to generate:
& lt; Div class = "lfloat fsm fwn fcg" & gt; & Lt; A href = "http://www.facebook.com/profile.php?id=uidhere" & gt; Friend's name & lt; / A & gt; An adjective = "/ ajax / pok_dialog.fip? Uid = uidhar and pichac = 1" relay = "dialog-post" & gt; Peak Back & lt; / A & gt; & Lt; / Div & gt; & Lt; A class = "Rfloat uiCloseButton uiCloseButtonSmall" ajaxify = "/ ajax / poke_hide.php? P = uidhere" href = "#" rel = "async-post" title = "remove" & gt; & Lt; / A & gt; Note that I have been given the place of UID again (or it is spelled) to print the name.
So I can see that when I catch them back I am following the following
However, when I used this code:
previousInnerHtml = document.getElementById ("poke_uidhere"). InnerHTML; Previous InnerHtml = Previous Inner HTML Place ('rel = "dialog-post"', 'rel = "dialog-post" id = "logon poker"'); Document.getElementById ("poke_uidhere"). InnerHtml = previousInnerHtml; . Click on Document.getElementById ("loganspoker") (); It does not click at all, it actually stalls here because I added an alert after this and the alert never came.
I left this method and just started trying to use: ourUrl = "/ajax/poke_dialog.php?uid=uidhere& Pokeback = 1 "function httpGet (theUrl) {var xmlHttp = null; XmlHttp = New XMLHttpRequest (); XmlHttp.open ("post", url, incorrect); XmlHttp.send (faucet); Back to xmlHttp.responseText; } HttpGet (ourUrl); This does not work either.
I think the problem with the first idea can be that the HTML resets in some way because when I review the source after the end of the script, the ID tag I add does not now is. (So the click does not work?) / /
I was just guessing with the second method, so why did idak not work? For the record, I have tried both GET and Post methods.
I am looking for any and all solutions on this.
I can think that there is only one more information that from the homepage (http://facebook.com) and I think has a different code on its separate page .
Do something like this:
var src = document GetElementById ("poke_uidhere"). GetElementsByTagName ('A') [1] .src, iframe = document.createElement ('iframe'); Iframe.src = src; Iframe.style.display = 'none'; Document.appendChild (iframe); While you do so, you can add a load event to remove it, but I do not think you should
Comments
Post a Comment