Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
return (new Object());
window.open = SymWinOpen;
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
Having said that I copied the posted Norton script and tried this. It seems to work but it's too simple. Norton must be doing more elsewhere and/or I'm not understanding how their popup blocker works.
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>
window.open = SymWinOpen;
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
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.
var JAVA_FLAG = 0;
now somewhere at the top of "yourscript.js" add the code:
JAVA_FLAG = 1;
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 '+
'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
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:
? I don't have Norton, so I'd like to know more.
1) Is this variable only set to a
value when Norton has blocked something?
2) If so, is the variable present - but
- when Norton is active but has not yet blocked anything?
alert("SymError" in this) [green]// -> true[/green]