View Full Version : Killing pop-ups!

09-26-2005, 08:09 PM
I'm hosting my files at a website that declared beforehand they wouldn't allow any ads. Now once I registered, a HUGE pop-up appears not just everytime I open the index up, but everytime a link is clicked.

Seeking revenge, I wonder if there's a way to block those pop-ups? by embeding a script or something?


09-26-2005, 08:25 PM
Hm. Try this:

<script type="text/javascript">
var RealWinOpen = window.open;
window.open = function(){return true;};
window.onerror = function(){return true;};
This will, however, (possibly) disable all popups, including legit ones. Note also that if you do this, and it's against your host's agreement, no-one takes any responsibility for loss of service :p Make sure nothing forbids it before doing so.

09-27-2005, 07:48 AM
Oh thanks it worked!!!!!

This is not against my host's agreement. We did not agree on this. It was clearly mentioned no ads would appear. I've also heard they started adding those pop-ups only 6 weeks ago. So it's kind of unrespectability to their users, if you ask me.