A
A
Alexander20142014-02-24 02:31:13
Mozilla Firefox
Alexander2014, 2014-02-24 02:31:13

How can I get the contents of an iframe on a page using the firefox extension?

Read elements in iframes located on other domains.
I know that browsers enforce cross-domain security policies, but many plugins, like firebug and other html inspectors, can access the content of a page's iframes. How do they do it. And is it possible to achieve this yourself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WEBIVAN, 2014-02-24
@WEBIVAN

This is not possible with JS. Only by proxying data through your domain.
And extensions have completely different capabilities and access rights than JS on the site.

D
devunion, 2014-03-06
@devunion

Easily. Grab the Addon SDK and use Page-Mod. Just look at the dock all the settings Page-Mod'a. Content scripts are inserted into the desired frame, and then the standard communication with the background script of the extension is screwed on. Everything is described in the Addon SDK dock.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question