disabling script

  • Thread starter Thread starter Bevan Collins
  • Start date Start date
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.
 
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.
 
Back
Top