DOMNodeInsert not working.

D

Daz

Hi all.

I am trying to find a method of scanning a web page as it opens in the
browser, then locating all of the <script> elements, and removing them
accordingly depending on the src attribute.

This is an extension for Firefox. I have looked into using
NodeInsertedIntoDocument, but Firefox doesn't support this event.

At present, the function attached to the event listener only seems to
fire when I reload the browser's chrome.

I would appreciate it if someone could perhaps point out a better
method of acheiving the results I am looking for, as I think I may be
misunderstanding something and going about it the wrong way.

Many thanks.

Daz.
 
D

Daz

Daz said:
Hi all.

I am trying to find a method of scanning a web page as it opens in the
browser, then locating all of the <script> elements, and removing them
accordingly depending on the src attribute.

This is an extension for Firefox. I have looked into using
NodeInsertedIntoDocument, but Firefox doesn't support this event.

At present, the function attached to the event listener only seems to
fire when I reload the browser's chrome.

I would appreciate it if someone could perhaps point out a better
method of acheiving the results I am looking for, as I think I may be
misunderstanding something and going about it the wrong way.

Many thanks.

Daz.

Sorry, the subject line should read: DOMNodeInserted not working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top