Carpetfizz
Carpetfizz

Reputation: 9169

Edit opened HTML Page, with Javascript

I was looking into making Firefox addons, and I need some help. Is it possible to edit an HTML page that is open in the browser with javascript? For example:

Of course this isn't specifically what I want to do, but a push in the right direction on how to accomplish such a task would be great. ~Carpetfizz

Upvotes: 0

Views: 127

Answers (2)

Wolph
Wolph

Reputation: 80061

From within a Firefox addon this is obviously possible as many extensions do this.

If you, however, simply want to modify the DOM and nothing else than I would recommend taking a look at greasemonkey. Loads of example scripts around to do this: http://userscripts.org/

And the added benefit, if written correctly they also work in Chrome and other browsers.

Upvotes: 2

Casimir et Hippolyte
Casimir et Hippolyte

Reputation: 89584

Yes, it is. You must find a tutorial about javascript DOM manipulation

Upvotes: 2

Related Questions