Forum Moderators: open
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
at first i did not know what this code is, i asked my friend and he thought that was spy ware in my PC.
now i have found a simple way to kick this ass
it's quite simple to block this code
just put this qoute on the top of your <!-- <html> pages, but don't block it:
just do this: <!-- <html> and this is the rest of your page.
and that's it, it does the job
now have a go with it, and let me know
Another approach that might work would be to assign the original window.open, etc. to variables before Norton does its magic, then through a delayed script reassign the values to their original objects.
Still, that would do nothing to circumvent native popup blockers, such as employed by Firefox and others. In those cases CSS probably offers the best alternative.
as I recall the Norton code was actually far more extensive than what has been posted. The program on my machine appended code both to the head and after the closing html tag.
You're right, there is more. The present version dumps the following after </html>
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload!= null)
SymRealOnUnload();
}function SymOnLoad()
{
if(SymRealOnLoad!= null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}SymRealOnLoad = window.onload;
window.onload = SymOnLoad;//-->
</script>
I didn't mention that script before because it doesn't do anything of consequence.
It is quite likely that my first use of these two words in written form is right before your eyes.
Strange that, innit.
First of all. Before your javascript that is not being called add this javascript setting JAVA_FLAG to 0.
SCRIPT language="Javascript">
var JAVA_FLAG = 0;
</SCRIPT> Next, you will write the code that calls your javascript. Ex:
<SCRIPT language="Javascript" src="yourscript.js">
</SCRIPT> now somewhere at the top of "yourscript.js" add the code:
JAVA_FLAG = 1;
This will let the following javascript know if yourscript.js was called or not and if the message needs to be displayed. Finally in your file write this javascript:
<script language="Javascript">
if (JAVA_FLAG == 0) // meaning yourscript.js was not loaded
{
if(window.SymError) // If Norton is installed and changing page
{
document.write('You have Norton Internet Security or Norton '+
'Personal Firewall installed on this computer. '+
'If the results do not show up then you need to disable '+
'Ad Blocking in Norton Internet Security and then '+
'refresh this page.<BR><BR> ');
}
else // if Norton not installed but still no yourscript.js
{
document.write('You have a program installed on this computer '+
'that is blocking the javascript for the results on '+
'this page. It is most likely an ad blocking program '+
'that might be part of a security program such as '+
'<FONT COLOR="RED">Norton Internet Security</FONT> or '+
'<FONT COLOR="RED">Norton Personal Firewall</FONT> '+
'You can try disabling the ad blocking program on '+
'your computer and refreshing this page.<BR><BR>');
} // end else
// write below for both errors
document.write('If that does not work you may also have to clear the '+
'Temporary Internet Files cache for your browser. '+
'(Ex: In Internet Explorer, click on "Tools" then '+
'"Internet Options" then "Delete Files" and then '+
'refresh this page.)<BR><BR>');
} // end if</script>
Let me know if this code has proved useful for you.
var yourscript = 1; inside the linked script. Then you can test for it on the page:
if(this.yourscript){... ===================================
What is
[blue]SymError[/blue]? I don't have Norton, so I'd like to know more. 1) Is this variable only set to a
true value when Norton has blocked something? 2) If so, is the variable present - but
false - when Norton is active but has not yet blocked anything? ie
alert("SymError" in this) [green]// -> true[/green]