Skip to content

Ad Blocking and CSS Tweaks

Given the age of the content on this website, many of these tweaks are simply ineffective in today's world. Nonetheless, these tweaks have been preserved for historical purposes.

/* block ads (Firefox only) */
@-moz-document domain(gamefaqs.com) {
iframe { display: none !important; }
img[alt="advertisement"] { display:none !important; }
div[style*="center"] a[target="_blank"] { display: none !important; }
}
/* block ads */
.ad { display: none !important; }
.adbox { display: none !important; }
#mpu_wrap { display: none !important; }
/* block CBS bar on top */
#gne_nav { display: none !important; }
/* block stuff on bottom */
#footer { display: none !important; }
/* block CBS promo link in header */
.rubics_netxp1_main { display: none !important; }
/* ascii-art font size (vertical display) */

table.message tr.even td { font-size: 13px !important; }
/* ascii-art font size (horizontal display) */
table.message tr td { font-size: 13px !important; }
table.message tr td.author { font-size: 11px !important; }
table.message tr td.author a.name { font-size: 12px !important; }
/* visited link stuff */
#board_wrap a { color: #03c !important; }
#board_wrap .board td { color: #000 !important; }
#board_wrap .board a:link { color: #000 !important; }
#board_wrap .board a:visited { color: #03c !important; }
#board_wrap .message a:visited { color: #000 !important; }
#board_wrap .searchtopics a { color: #000 !important; }
/* unbold topic/msg count */
#board_wrap td.count { font-weight: normal !important; }
/* widen last post column */
#board_wrap col.lastpost { width: 85px !important; }

Windows (browser specific)

Firefox

  • Find your "chrome" folder, which is usually located through a path like this:
    C:\Documents and Settings[username]\Application Data\Mozilla\Firefox\Profiles[random].default\chrome
  • If you are not using Windows XP, check this page to find your profile folder.
  • Once this folder is located, you'll see that it has a userContent.css file in it (if this file is not there, you'll need to create it). Open the file in a text editor, copy and paste the above lines into it, and save the file.
  • An alternate solution is to use the Firefox Ad Blocker add-on.
  • You can also try GameFOX.

Internet Explorer

  • Create a text file with a .css extension
  • Copy and paste the above lines into it using a text editor and save the file.
  • Open IE and go to Tools > Internet Options > General > Accessibility
  • Check the box that says "Format documents using my style sheet," then load the .css file you created into the stylesheet box and click OK.

Macs (browser specific)

Copy and paste the lines from the top of the page into a plain text file called "userContent.css" (you might have to manually add the .css ending to the file). After you're done, locate your next step from the following choices depending on your browser:

Safari

  • Launch Safari, select Safari from the menu
  • Select Preferences...
  • Click on Advanced
  • Click on the pull down menu and select Other...
  • Locate the file on your computer and select it
  • Relaunch Safari

Camino

  • Take the file you made and save a copy of it inside the "chrome" folder that can be located here:
    /Users/[username]/Library/Application Support/Chimera/Profiles/default/[random].slt/chrome/
  • Launch Camino

Firefox - Take the file you made and save a copy of it inside the "chrome" folder that can be located here:
/Users/[username]/Library/Application Support/Firefox/Profiles/[random].default/chrome/ - Launch Firefox

Mozilla

  • Take the file you made and save a copy of it inside the "chrome" folder that can be located here:
    /Users/[username]/Library/Application Support/Mozilla/Profile/default/[random].slt/chrome/
  • Launch Mozilla

Note

If you cannot locate the "default" folder in any of those instructions, it may have been replaced by another username of some sort. Open up that folder and look for the "random" folder.

*nix (browser specific)

Firefox

  • Copy and paste the lines from the top of the page into a plain text file called "userContent.css" (you might have to manually add the .css ending to the file).
  • Take the file you made and save a copy of it inside the "chrome" folder that can be located here:
    ~/.mozilla/firefox/[random].default/chrome/
  • Launch Firefox

Konqueror

  • Copy and paste the lines from the top of the page into a plain text file with a .css extension.
  • Open Konqueror and go to Settings > Configure Konqueror... > Stylesheets > Use user-defined stylesheet
  • Click on the folder and browse to where you saved the .css file. If you also use Firefox, you can set Konquerer to use the same stylesheet as Firefox.

hosts method

The file to edit is /etc/hosts (all lowercase). You must be root to modify the file, and you can modify it with vi, emacs, or any other text editor. Copy and paste the lines below into your hosts file. The /etc/hosts file must be world-readable, and your text editor might involuntarily clear the group and world-readable flags. Just to be sure, type "chmod 644 /etc/hosts" (without quotes) to be sure the file has correct permissions. You don't have to reboot.

127.0.0.1 view.atdmt.com
127.0.0.1 mads.cnet.com
127.0.0.1 adlog.com.com
127.0.0.1 ads.com.com
127.0.0.1 dw.com.com
127.0.0.1 ad.doubleclick.net
127.0.0.1 bwp.gamefaqs.com

If you run your own web server, these hosts table modications will cause your server to get more "hits" now that your computer looks to itself in lieu of ad sites. To get around this problem, you can:

  • Change the listening port of your web server. Not a good option if your computer has a domain name and you serve pages to the Internet.
  • Configure your web server so that it doesn't bind to 127.0.0.1. It should bind to your NIC address (like 192.168.81.3) only. When accessing pages on your own server, do so using http://nic_address/ instead of http://127.0.0.1/ as you may have been doing. You can add your NIC address to your hosts file(s) so that you can use http://mynic/ instead of the IP.

IBM OS/2

This information is valid for:

  • OS/2 Warp 3 red or blue box with the Internet Access Kit installed
  • OS/2 Warp 3 Connect with TCP/IP installed
  • OS/2 Warp 4.x (Merlin) with TCP/IP installed
  • OS/2 2.x with IBM TCP/IP 1.2.1 (sold separately) installed

  • Modify files with E.EXE, EPM, or any other text editor. If using E.EXE, set the file type to Plain Text when saving.

  • OS/2 users may have two hosts files, one for native OS/2 applications and the other for DOS and Win-OS/2 applications. When two hosts files are present, both must be modified separately. The filename is not case-sensitive.
  • The location of the hosts file(s) depends on where TCP/IP was installed and the value of the ETC environment variable (if set). If you don't know where it is / they are, use Seek and Scan Files (PMSEEK) to locate it/them.
  • Once you find your file(s), copy and paste the lines as Unix/Linux users would. 5) With the same editor, open the CONFIG.SYS file on the boot drive. OS/2 Warp 3 red and blue box (not Warp Connect) users must add this line:

CALL=ifconfig.exe lo 127.0.0.1 up

All users must add this line:

SET USE_HOSTS_FIRST=1

Some users may also need this line:

CALL=route.exe add host 127.0.0.1 127.0.0.1 0

All users must reboot if CONFIG.SYS has been modified. When making future revisions to the hosts file(s), rebooting is not necessary.