how to make this to an add-on plugin button?

General questions about scripts and buttons should be asked here. Development scripts and buttons may also be posted for feedback.

Moderators: Support Staff², Support Staff, AvantGuard, Developer

Post Reply
kazme
Semi-Fan
Semi-Fan
Posts: 66
Joined: Sun Jun 03, 2007 11:03 am
Avant Version:

how to make this to an add-on plugin button?

Post by kazme » Thu Jun 07, 2007 9:51 pm

i steeled the script from crazybrowser.com, before i used avant i user crazybrowser and the have an plugin that is very good "kill flash" for example if you goto www.[removed].net you get an anoying gred bar att the side that follows you in the hole site so here is the script:


<script language="Javascript">
//Copyright (c) 2000-2006 CrazyBrowser.com
//All Rights Reserved.

function handledoc(doc)
{
//for(var i=0;i<doc.embeds.length;i++)
for(var i=0;i<doc.embeds.length;i++)
{
try
{
var obj=doc.embeds;
obj.hidden=true;
obj.style.height=0;

} catch(e){}
}

var iels=doc.all;
var l=iels.length;

for (var i=0;i<l;i++)
{
var iel=iels;

try
{
if (iel.tagName=="OBJECT")
{
iel.style.visibility="hidden";
iel.style.height=0;
}
} catch(e){}

try
{
if (iel.style.position=="absolute")
{
iel.style.visibility="hidden";
iel.style.height=0;
}
}catch(e){}
}
}

handledoc(document);

for(var i=0; i < parent.frames.length; i++)
{
try
{
var fm=parent.frames;
handledoc(fm.document);
}catch(e){}
}


</script>



-------------------------
anybodey who can make this to work?

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Post by bigC » Fri Jun 08, 2007 10:46 pm

How is this different then the disable flash button Avant has?

Post Reply