disabling script

B

Bevan Collins

Hi,

I'm writing a BHO to disable all scripts on pages to be determined
after the page has loaded.
I've tried removing the script elements using
IHTMLDOMNode::removeNode, and also setting different properties on
IHTMLScriptElement, but to no avail.
I've also looked into adding the site to the restricted sites security
zone, but I haven't been able to do this so that IE picks up the
change immediately.
Anyone got an idea?

Cheers.
 
B

Bevan Collins

Hi,

I'm writing a BHO to disable all scripts on pages to be determined
after the page has loaded.
I've tried removing the script elements using
IHTMLDOMNode::removeNode, and also setting different properties on
IHTMLScriptElement, but to no avail.
I've also looked into adding the site to the restricted sites security
zone, but I haven't been able to do this so that IE picks up the
change immediately.
Anyone got an idea?

Cheers.

Looks like I've managed to get something working... after calling
IInternetSecurityManager::SetZoneMapping with URLZONE_UNTRUSTED, I
need to refresh the page for the new security zone to kick in.
 

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

Similar Threads

Trusted Sites Zone 7
Script Error 1
IE script errors 2
i.e. script errors 3
Script errors on Windows Mail (and Windows Live Mail) 1
A script on this page....IE7 3
i.e. error 4
Script error I can't get rid of 1

Top