What I need to be able to do is stop sites from loading other sites in IFRAME. Reason: When loaded in an IFRAME, the other site frequently does not read cookies properly. As a result, if I'm logged into a site that I should be able to visit and be authenticated with yet said site is loaded within an IFRAME from another site that is linking to it, it won't read that ie knows who I am. I figure this is due to the fact that I disable third-party cookies; not sure if it's a symptom of IFRAME. Anyway it's annoying. Right now, I have to right click in the IFRAME, go to "This Frame" then "Show Only This Frame" in order to get what I want - basically, turn it into a redirect rather than an embedded object. Then the page is fine.
I figure it's got to be easy to do, and if it's limited only to sites that one has designated Trusted there shouldn't be any unwanted redirects, especially if there are IFRAMEs that would not be on the Trusted list (and thus blocked). I guess it depends on how useful others might find this feature. I don't want it default; just a selectable option.
Request: Option to chg IFRAME to Redirect on Trusted Sites
Request: Option to chg IFRAME to Redirect on Trusted Sites
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Request: Option to chg IFRAME to Redirect on Trusted Sit
I think the easiest way to accomplish something like this is using a GreaseMonkey script.
Something like
Something like
Code: Select all
(function()
{
var ff = document.getElementsByTagName("iframe");
for (var j = 0, len = ff.length, f; j < len; j++)
{
f = ff[j];
if (f.src && window.getComputedStyle(f, "").display != "none")
{
f.display = "none"
open(f.src, "_blank");
}
}
})();
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8