Getting rid of pop-ups on free sites.
We have researched for a period how to get rid of those annoying THINGS on free web sites. From Geocities ad square to several others. These solutions should work.
| Before you read further, remember: Subverting a Free Webspace Provider's popups or other gratuitious adverspamming may be against the TOS, and as such, they reserve the right to boot your ass out and delete your page if they catch you doing it! While many are thick-headed enough not to waste their precious brain-time worrying about it, this is a public page, so even the FWPs themselves can (and a couple do!) read up on every method detailed below. Consider these a "temporary" fix to keep an FWPs popup from annoying your visitors while you redirect them to your site's NEW location (when a greedy FWP puts that kind of shit on your page, you move out of course!) In other words, you should be putting this on your replacement "My page has moved!" signpost pages, not your actual homepage |
Part 1 Pop-ups
Angelfire
This could be what we've all been waiting for. Instead of provider-specific solutions, a single popup-killer script that works on every free webpage provider without modifications! The premise of what has been dubbed the SuperScript is that JavaScript functions can be redefined, particularly the window.open function.| Key: Black is your normal HTML Red is the server-included popup code Blue is the workaround or pop-up removal Green is something in the script you have to change/delete/modify |
Basic SuperScript
| <html> <SCRIPT LANGUAGE="JavaScript"> <!-- function open() {return true;} //--> </SCRIPT> <head> ... |
| <html> <SCRIPT> <!-- function ScreenIt(url,name,parm){ if(url.indexOf("popup.html")!=-1) return false; return window.Xopen(url,name,parm); } window.Xopen=window.open; window.open=ScreenIt; //--> </SCRIPT> <head> ... |
This is intended for those who
use JavaScript window.open() in their own scripts, and only want it to
be disabled specifically for the FWP. Like the previous script, this must be put
before the FWP's popup code in order to work properly. This script looks to see
whether the popup is from the site author (good) or from the FWP (bad)...if it's
an FWP popup it is screened out. Change popup.html to any partial
word/phrase/etc. that appears in the FWP popup's URL (they often have the word
"pop" in the URL...use that...and just as often, there is a
"?" in their popup URL somewhere...since normal webpage URLs never
contain a "?", that's a very good way for the script to tell the popup
came from the FWP!)...any popup whose URL contains that phrase will be screened
out, and ones with URLs not containing it will be allowed through. This script
can also be easily modified to allow popups with specific things in their URLs
(such as "mygoodpopup.html") and block all others--useful for FWPs who
like to change their popup's URL every two days :)
GeoCities
GeoCities, the FWP everyone loves to hate, has officially dropped its watermark and popups for a new cash cow, called the AdSquare. Like the evil Watermark, it is a DHTML monstrosity that uses Cascading Style Sheets to embed a flickering Yahoo ad in the upper-right corner of your page. Conventional Wisdom states that this ad is poised to become even more heavily animated in the not-too-distant future, and begin floating around the screen in much the same manner as the Watermark. Unlike the Watermark, however, viewers will be able to remove the ad from a single page by clicking a "close" button on the ad itself and view portions of the page that may be underneath it.
To get rid of the
ad, make the following modifications at the end of your homepage:
| ... </body> </HTML> <noscript><table bgColor="#ffffff"><td><font
color="#ffffff"><plaintext> |
This will tell the browser that all the GeoCrap tacked on is meant to be viewed as text (not run as a Javascript), and hides all this stuff in an unclosed table definition (meaning it will be invisible to users of Netscape and other REAL browsers). If they use IE, the AdSquare code will appear at the bottom with the same colour as your page's background. If you use a background graphic on your page, see below. Remember, there's no such thing as </plaintext>!
Kirk
writes in with the following code for those with a background graphic:
| ... </body> </HTML> <noscript><table background="pic
name.jpg"><td><font
color="#ffffff"><plaintext> |
(If you find a browser that doesn't like this code for some reason, please let me know...)
Tripod
The Tripod code has changed again. It's sneakier! Anyway, here's a way to beat it.| ... <HTML> <script language="JavaScript"> <!-- var popupName="TripodPopup"; // popup.location = "http://www.cexx.org/parking.htm?PlopsSuck"; popup.close(); // --> </script> ... |
WebJump
The unique thing about Webjump's popup is that it appears behind the main browser window instead of on top like most popups. There it quietly sits, waiting to ambush the hapless surfer when he/she closes the browser's main window. For the record, every popup requires the surfer to interact with the ad; there is no such thing as a passive popup. While Webjump asserts it's just to annoy visitors less, it seems like the "passive popup" is more an effort to keep people from pinning it on them as the popup offender....it's pretty much the equivalent of farting in a crowded room.The Webjunk..er, Webjump "passive popup" is particularly nasty in that it is loaded via a separate frameset, so its JavaScript code cannot be acted upon directly. Like the Digiweb and Spaceports popups, the popup window must be hijacked when it appears.
| ... your page's HTML here ... <script language="JavaScript"> <!-- var timing=0; var newpage="protest.htm"; var wndname="po"+"pWind"+"ow"; window.onError=null; tasteful=window.open(newpage,wndname,"height=400,width=400,scrollbars=yes"); andStayOut(); function andStayOut(){ |
Part 2 Getting Rid of Ad Frames
AdFrames are
frames that appear on free webpages and serve a neverending stream of banners
and crap, and can't be scrolled off-screen. AdFrames on free webpage providers
are insidious in that they are embedded in not the page but the browser window
itself, latching on like little parasites and coming along for the ride for as
long as that browser window remains open. Even if you surf off the ad-laden site
in search of greener pastures, SURPRISE! The constantly-reloading adframe tags
along and forces ads onto any other sites you surf in that window, above and
beyond all the ads that already litter the new page.
Getting rid of adframes Anywhere
| ... <SCRIPT> <!-- if(top!=self) top.location.href=self.location.href; //--> </SCRIPT> ... |
If you have a
provider with paranoid sysadmins (ahem again,the old Xoom) that scan for this
type of code, use this instead:
| ... <SCRIPT> <!-- eval(unescape("%69%66%28%74%6f%70%21%3d%73%65%6c%66%29%7b%74%6f%70%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%3d%73%65%6c%66%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%3b%7d%0a")); //--> </SCRIPT> ... |
This script works on sites that use adframes such as:
321website.com
come.to/surf.to (whatever redirectors use adframes)
com-unity.net
Fiberia
freeservers.com
(8m.com/etc.) Has
changed to inline banner ads
Intercosmos
Sitio.de
Spacelynx
virtual-power.net (Virtual Power)
Visual Cities
Webjump
Wowsites
To provide the
viewer with the option of breaking frames but not actually breaking them
automatically, use the following script instead:
| ... <SCRIPT> <!-- if(top.location.href!=self.location.href) document.writeln('<A HREF="'+self.location.href+'" TARGET="_top">Break the frames!</A>'); //--> </SCRIPT> ... |
This will insert a Break the frames! link on any page that is trapped inside a frameset.
| <script
language="JavaScript"> <!-- var winname1="adw"; var winname2="indow"; var windowname=winname1+winname2; arbitrary = window.open("replacement.htm", windowname, "toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=no,width=530,height=230"); // arbitrary.close(); //Uncomment this statement to make the popup window go bye-bye :) // --> </script> |