/* The K-Meleon Files: macros.cfg, menus.cfg, User.js, userContent.css */
/*
* This file can be used to apply a style to all web pages you view
* Rules without !important are overruled by author rules if the
* author sets any. Rules with !important overrule author rules.
*/

/*
 * Until bugs 103843 and 105547 get fixed, a helpful workaround
 * to highlight some links which would pop up a new window:
 */
:link:hover[target="_blank"],:visited:hover[target="_blank"] {
  color: white !important; background: red !important;
}
:link:hover[target="_new"],:visited:hover[target="_new"] {
  color: white !important; background: red !important;
}

/*
* turns off "blink" element blinking
*/
blink { text-decoration: none ! important; }

/*
* hides many ads by preventing display of images that are inside
* links when the link HREF contans certain substrings.
* A:link[HREF*="/A="] IMG { display: none ! important }
*/

A:link[HREF*="ad."] IMG { display: none ! important }
A:link[HREF*="ads."] IMG { display: none ! important }
A:link[HREF*="/ad"] IMG { display: none ! important }
A:link[HREF*="/A="] IMG { display: none ! important }
A:link[HREF*="/click"] IMG { display: none ! important }
A:link[HREF*="?click"] IMG { display: none ! important }
A:link[HREF*="?banner"] IMG { display: none ! important }
A:link[HREF*="=click"] IMG { display: none ! important }
A:link[HREF*="/ar.atwo"] IMG { display: none ! important }
A:link[HREF*="spinbox."] IMG { display: none ! important }
A:link[HREF*="transfer.go"] IMG { display: none ! important }
A:link[HREF*="adfarm"] IMG { display: none ! important }
A:link[HREF*="bluestreak"] IMG { display: none ! important }
A:link[HREF*="doubleclick"] IMG { display: none ! important }
A:link[HREF*="bravenet"] IMG { display: none ! important }
A:link[HREF*="/ban/"] IMG { display: none ! important }
A:link[HREF*="/banners/"] IMG { display: none ! important }
A:link[HREF*="/a/"] IMG { display: none ! important }


/* disable ad iframes */
IFRAME[SRC*="ad."] { display: none ! important }
IFRAME[SRC*="ads."] { display: none ! important }
IFRAME[SRC*="/ad"] { display: none ! important }
IFRAME[SRC*="/A="] { display: none ! important }
IFRAME[SRC*="/click"] { display: none ! important }
IFRAME[SRC*="?click"] { display: none ! important }
IFRAME[SRC*="?banner"] { display: none ! important }
IFRAME[SRC*="=click"] { display: none ! important }
IFRAME[SRC*="/ar.atwo"] { display: none ! important }
IFRAME[SRC*="spinbox."] { display: none ! important }
IFRAME[SRC*="transfer.go"] { display: none ! important }
IFRAME[SRC*="adfarm"] { display: none ! important }
IFRAME[SRC*="bluestreak"] { display: none ! important }
IFRAME[SRC*="doubleclick"] { display: none ! important }
IFRAME[SRC*="bravenet"] { display: none ! important }
IFRAME[SRC*="/ban/"] { display: none ! important }
IFRAME[SRC*="/banners/"] { display: none ! important }
IFRAME[SRC*="/a/"] { display: none ! important }

/* turning some false positives back off */

A:link[HREF*="download."] IMG { display: inline ! important }
A:link[HREF*="click.mp3"] IMG { display: inline ! important }

/* this hides the usual 468x60 Flash banner ads */
embed[type="application/x-shockwave-flash"][width="468"][height="60"] {
display: none !important;
}
/* this hides the not so usual but very annoying 728x90 Flash banner ads */
embed[type="application/x-shockwave-flash"][width="728"][height="90"] {
display: none !important;
}

/* --------- Block Ads Based on Size -------------*/
*[height="600"][width="120"], *[height="600px"][width="120px"],
*[height="120"][width="600"], *[height="120px"][width="600px"]
*[height="60"][width="468"], *[height="60px"][width="468px"],
*[height="468"][width="60"], *[height="468px"][width="60px"],
 {
  display: none !important;
 }

/* kills geocities hover popup, since it never works in Gecko anyway */
table[border='2'] tbody tr td[valign='top'][bgcolor='#ffffff'],
tr[height='5'] td[width='5'][bgcolor='#0e3563'][rowspan='3'],
tr[height='5'] td[height='5'][bgcolor='#0e3563'] {
    display                     : none !important;
}
/* Ad blocking */
form[action='http://cgi.tucows.net/cgi-bin/mail/mailtofriend-tucows.pl'],
iframe[id='adFrame'],
iframe[id='splashFrame'],
div[id='splashLayer'],
div.showcase a.scLink {
    display                     : none !important;
}

img[src='/i/fd/show/shwcs_head.gif'],
img[src='http://www.cnet.com/i/fd/show/shwcs_head.gif'],
img[src='http://as1.falkag.de/server/poor.asp?cmd=ban&dat=46210&opt=0'] {
    display                     : none !important;
}

*[src*='/adx/'],
*[src*='ads.'],
*[src*='/ad/'],
*[src*='/ads/'],
*[src*='/Ads/'],
*[src*='atdmt.com'],
*[src*='doubleclick'],
*[src*='us.a1.yimg.com'],
*[src*='advertis'],
img[src*='http://images.slashdot.org/banner/'] {
  display: none !important;
}

img[alt*='Sponsored'],
img[alt*='Advertis'],
img[alt='Click here to find out more!'] {
  display: none !important;
}

table[bgcolor='#e8e8e8'][width='160'] {
    height                      : 0px !important;
    display                     : none !important;
}

/* Stop those  tags! */
marquee {
   -moz-binding : none !important;
   display : block;
   height : auto !important;
}

/* MozillaZine nag */
/* Hey, I gave money! */
div#bugday {display:none;}
img[src="http://www.mozillazine.org/5years/image/mz5years1998-2003.png"],
*[src*="http://images.paypal.com/images/x-click-but04.gif"]{display: none !important;}

/*
* For more examples see http://www.mozilla.org/unix/customizing.html
*/