Crashalot
Crashalot

Reputation: 34523

Firefox extension that overlays persistent iFrame?

Is it possible to build a Firefox extension that displays a floating, persistent iFrame over the page content?

I know it's possible to add iFrames using XUL. For instance, you can add an iFrame to a persistent sidebar. However, I want the iFrame to float over the page content, not cause the content to shrink. So far, my only option is to add the iFrame to the DOM, then use CSS "fixed" positioning to float the iFrame.

The iFrame must also persist across page loads, exactly as the sidebar does. Adding an iFrame to the DOM, unfortunately, causes the iFrame to vanish when the browser renders a new page (e.g., after clicking a link).

Any clues?

Thanks!

Upvotes: 1

Views: 1163

Answers (3)

user288491
user288491

Reputation:

Yes. I was able to do this by setting the attribute noautohide in the panel you use.

E.g.

<panel id="yourOverlay" noautohide="true">

Upvotes: 1

Tuan Anh Hoang-Vu
Tuan Anh Hoang-Vu

Reputation: 1995

Another add-on you can look at is Shopping Helper It has an iframe at the bottom whenever the page is displayed a product

Upvotes: 1

Ryan K
Ryan K

Reputation: 351

You might be able to do something like this with Greasemonkey, it allows you to customize how web pages look and you could make your script available to others.

Upvotes: 0

Related Questions