Code: Select all
if ('iframes' in document) {
var iframes = (window.document.iframes);
}
else {
var iframes = (window.document.getElementsByTagName ("iframe"));
}
var infosrc = (iframes[#91]0[#93].src);
var infotxt = (iframes[#91]0[#93].text);
But as it turns out, the Facebook Page "plugin" uses weird javascript that creates an iframe on the fly containing a link with a red security warning:
https://staticxx.facebook.com/connect/xd_arbiter.php?
I don't think it is my responsibility to try to patch up faulty Facebook scripts, but I want to continue to be able to inspect iframes in documents without having security warnings from websites that use Facebook plugins. Does anyone have a workaround suggestion?
I tried to contact Facebook about this. They have no email address. The ThreatExchange Facebook page won't let me post a message...
.
.