yes it may be possible.
if an onload="" event was calling a function it may be possible to null the function by adding onload=null into a plugin.
However without more details on your specific problem we cant really help you.
-- delete --
Moderators: Support Staff², Support Staff, AvantGuard, Developer
- sulpherdragon
- Contributor
- Posts: 222
- Joined: Sat Dec 15, 2007 9:51 pm
- Windows Version: Windows 7
- Avant Version: 2013 Build 23
- Default engine: Firefox
- IE Version:
- Skin:
- Contact:
-
- Avantus Maximus
- Posts: 5624
- Joined: Wed Jan 26, 2005 4:24 pm
- Windows Version: Vista Ultimate x64 SP2
- Avant Version: 11.7 build 43
- IE Version: 8
- Contact:
Re: [Request] Disable certain (Java)-Script commands
I don't think that it'd be possible with the current addons system in Avant, Since the addon script's execution starts just when the page is fully loaded.
- sulpherdragon
- Contributor
- Posts: 222
- Joined: Sat Dec 15, 2007 9:51 pm
- Windows Version: Windows 7
- Avant Version: 2013 Build 23
- Default engine: Firefox
- IE Version:
- Skin:
- Contact:
Re: [Request] Disable certain (Java)-Script commands
Well this code below will blank the iFrame window. It will however have opened quickly in the first place.
As was mentioned, the addons work AFTER the page has loaded, to edit stuff before the page hits your browser you need an attack proxy. Monkeygrease and Snark may be able to help you if your determined, but theres no easy way to do it.
This code is tailored to suit the html code you supplied. You may have to modify it to work on other pages.
If the iFrame loads javascript into the parent page then it probably wont be of much use to you. But if you require this code for something other than that, it should blank the iFrame.
If your looking to simply remove the iFrame because its in the way of something, the illusion of removing it can be achieved by adding
Ive uploaded a plugin which appears to completely remove the iFrame, and it will remove some of its effects too (eg, if its playing music or something annoying like that).
As was mentioned, the addons work AFTER the page has loaded, to edit stuff before the page hits your browser you need an attack proxy. Monkeygrease and Snark may be able to help you if your determined, but theres no easy way to do it.
Code: Select all
var iFrameX=document.getElementById("SELFHTML_in_a_box");
iFrameX.src="about:blank"
If the iFrame loads javascript into the parent page then it probably wont be of much use to you. But if you require this code for something other than that, it should blank the iFrame.
If your looking to simply remove the iFrame because its in the way of something, the illusion of removing it can be achieved by adding
Code: Select all
iFrameX.width=0
iFrameX.height=0
- Attachments
-
- TestBlockIFrame.aba
- (188 Bytes) Downloaded 309 times

-
- Avantic Elite
- Posts: 1940
- Joined: Sun Aug 05, 2007 11:56 am
- Windows Version: Windows 7
- Avant Version: N/A
- IE Version: N/A
- Location: California, USA
- Contact:
Re: [Request] Disable certain (Java)-Script commands
iframes yes, activex/flash probably not, but maybe...
With the iframes you can stop them, but they might get a little time to load.
With the iframes you can stop them, but they might get a little time to load.
-
- Newbie
- Posts: 42
- Joined: Wed Sep 28, 2005 6:21 pm
- Windows Version: Xp Pro
- Avant Version: 11.7 Build 15
- IE Version: 7
Re: [Request] Disable certain (Java)-Script commands
Here is some bookmarklet code I found online that disables java, flash, background music, and third-party iframes. Maybe it can be worked for Avant to do what you are looking for. I'm sure it can be edited to run automatically at load time but I haven't edited the code all.
Zap Plugins Bookmarklet Source
I found it searching for a way to disable flash on MySpace and it seems to work on the sites I have tested to disable flash, music and iframes.
Here is an Avant Browser button cut & paste
Code: Select all
javascript:(function(){function R(w){try{var d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=["object","embed","applet","iframe"][j];++j){T=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3||!R((C=N.contentWindow)?C:N.contentDocument.defaultView)){b=d.createElement("div");b.style.width=N.width; b.style.height=N.height;b.innerHTML="<del>"+(j==3?"third-party "+t:t)+"</del>";N.parentNode.replaceChild(b,N);}}}catch(E){r=0}return r}R(self);var i,x;for(i=0;x=frames[i];++i)R(x)})()
I found it searching for a way to disable flash on MySpace and it seems to work on the sites I have tested to disable flash, music and iframes.
Here is an Avant Browser button cut & paste