/*
 * style.css: general and site-specific style adjustments
 *   Last Update: Tue Dec 19 15:26:26 CST 2006
 *
 * http://www.gozer.org/mozilla/ad_blocking/
 */

/* --- general ------------------------------------------------------------ */

@-moz-document url-prefix(http), url-prefix(file://)
{
  /* force font family */
  /** { font-family: sans-serif !important; }*/

  /* disable fixed backgrounds (body, td, etc) */
  /** { background-attachment: scroll !important; }*/

  /*
   * limit nested <big>'s:
   *   http://bugzilla.mozilla.org/show_bug.cgi?id=206235
   */
  big big big big { font-size: inherit; }

  /* hide image borders */
  /*a img { border-width: 0 !important; }*/

  /* disable all background images */
  /*body { background-image: none !important; }*/

  /* don't fiddle with my header sizes */
  /*h1 { font-size:    2em !important; }
    h2 { font-size:  1.5em !important; }
    h3 { font-size: 1.17em !important; }
    h4 { font-size: 1.33em !important; }
    h5 { font-size: 0.83em !important; }
    h6 { font-size: 0.67em !important; }*/

  /* lessen bevel of form elements */
  input:not([type="image"]), button, textarea, select {
    border-width: 1px !important;
    border-bottom-color: #aeadab !important;
    border-right-color: #aeadab !important;
  }

  /* adjust button colors */
/*input[type="button"], input[type="submit"], input[type="reset"], button {
    background-color: ButtonFace !important;
    color: ButtonText !important;
  }
  input[type="button"]:hover,
  input[type="submit"]:hover,
  input[type="reset"]:hover,
  button:hover {
    background-color: #f8f5f1 !important;
  }*/

  /* denote mailto: links */
  a[href^="mailto:"] {
    color: #154766 !important;
    text-decoration: underline !important;
  }

  /* blacklisted links */
  a[href*="goatse."], a[href*="tubgirl."] {
    color: black !important;
    text-decoration: line-through !important;
  }

  /* links opening in new window */
  /*a[target*="blank"], a[target*="new"] {
    color: red !important;
    text-decoration: underline !important;
  }*/

  /* javascript links */
  /*a[href^="javascript:"], a[href="#"][onclick] {
    color: green !important;
    text-decoration: underline !important;
  }*/

  /* image links */
  /*a[target*="blank"] img, a[target*="new"] img {
    border: 1 !important;
    background-color: red !important;
  }*/

  /* javascript image links */
  /*a[href^="javascript:"] img, a[href="#"][onclick] img {
    border: 1 !important;
    background-color: green !important;
  }*/

  /* avatars (phpBB) */
  img[src^="avatar.php?userid="], td > span.postdetails > img {
    display: none !important;
  }

  /* avatars (vbulletin) */
  a[href^="member.php?"] > img { display: none !important; }

  /* avatars (webwizforums) */
  td.smText img[alt="Avatar"] { display: none !important; }

  /* avatars (ubb) */
  img[src*="/uploads/avatars/"] { display: none !important; }

  /* avatars and sigs (SMF) */
  img.avatar, div.signature { display: none !important; }

  /* avatars (various bittorrent trackers) */
  table[class^="main"] td.embedded table.main[width="100%"][cellspacing="0"][cellpadding="5"][border="1"] td[width][align="center"][style="padding: 0px;"] { display: none !important; }

  /* images in sigs (phpBB) */
  td > span.postbody > br ~ img { display: none !important; }

  /* vBulletin textarea editor controls */
  div#vB_Editor_QR_controls { display: none !important; } 

  /* floating feedback */
  div#O_o { display: none !important; }

  /* hide OSTG nav on Slashdot, Sourceforge, etc */
  #ostgnavbar, .ostgnavbar { display: none !important; }

  /* freeipods.zoy.org and the like */
  #goatse { display: none !important; }
}

/* --- various ------------------------------------------------------------ */

@-moz-document domain(news.com.com)
{
  /* --- original (may no longer apply) ----------------------------------- */

  /* clean up an extremely busy page */
  div#container div#savestories,
  div#container div#content div#rightcol,
  div#container div#content div#leftcol div#embed,
  div#container div#content div#leftcol div#storywht,
  div#container div#content div#leftcol div#newsletter,
  div#container div#content div#leftcol div#datestamp,
  div#container div#content div#leftcol div#story div#storyAddAlert,
  div#container div#content div#leftcol img[src*="/highimpact"],
  div#container div#content div#leftcol a img[src$="save.gif"],
  div#container div#content div#leftcol iframe,
  div#container div#content div#leftcol table {
    display: none !important;
  }

  /* animated image / layer thing */
  div#container div#content div#carousel { display: none !important; }

  div#container div#content div#leftcol { width: 98% !important; }

  /* --- redesign --------------------------------------------------------- */

  /* entire right column of story pages */
  div#newsShell div#newsContent div#relatedPane { display: none !important; }

  /* "Spotlight on" at bottom of page */
  div#newsShell div#newsContent div#smbShell { display: none !important; }

  /* --- general ---------------------------------------------------------- */

  /* inline factoids and various bits */
  newselement + div, newselement + table { display: none !important; }
}

@-moz-document url-prefix(http://www.google.com)
{
  /* search: google toolbar */
  body[onload^="document.gs.reset()"] > center > table[cellpadding="9"] td[bgcolor="#e5ecf9"] { display: none !important; }
}

@-moz-document domain(groups.google.com)
{
  /* login, history */
  table#ln { display: none !important; }

  /* floating topic */
  div#topicfloat { display: none !important; }

  /* 11/2005 update */
  div#nav.lnav { display: none !important; }
  div#co.lnavch { margin-left: 0 !important; }
  .blsh { border-bottom: 0px !important; }
  .lsh, .tlsh, .blsh { border-left: 0px !important; }
  .bnk { border: 0px !important; }
  .gt td { border-right: 0px !important; }
  .exh { background-color: white !important; }
  #cbdy { border-left: 0px !important; }
  table.lsh[height="8"][cellpadding="1"] { display: none !important; }
  table.blsh { display: none !important; }
}

@-moz-document domain(google.com)
{
  /* disable 'New!' */
  /*a[style="text-decoration: none;"] > sup { display: none !important; }*/
}

/* Randy H. Tjahjono
@-moz-document domain(news.yahoo.com)
{
  div#ygma,
  div.ynfeedback, div.lrec,
  div#ynsubnav,
  div#yncont div#ynhead,
  div#yncont div#ynneck,
  div#yncont div#ynbody div#sidebar,
  div#yncont div#ynactions,
  div#yncont div#ynrelated,
  div#yncont div#ynknees,
  div#yncont div#ynfeet,
  div#yncont div#ynbody div#ynstory div#ynmain div#storybody div.lrec,
  div#yncont div#ynbody div#ynstory div#ynmain div#sponseredlinks {
    display: none !important;
  }

  div#yncont div#ynbody div#ynprovindex div#ynmain div#indexstories,
  div#yncont div#ynbody div#ynstory div#ynmain div#storybody {
    width: 100% !important;
  }
}
*/

@-moz-document url-prefix(http://tv.yahoo.com/grid/)
{
  /* show grid only */
/*center > * { display: none !important; }
  center > div#ytvMainBody { display: inline !important; }
  center > div#ytvMainBody > * { display: none !important; }
  center > div#ytvMainBody > div.ytvProvider,
  center > div#ytvMainBody > div.ytvKwdSearch,
  center > div#ytvMainBody > div.grid_cont,
  center > div#ytvMainBody > div.tabs { display: inline !important; }*/

  /* lessen grid height */
/*div#ytvMainBody > div.grid_cont ul.grid#oGrid ul.times li {
    height: 3em !important;
  }*/
  div#ytvMainBody > div#grid div.chan { height: 35px !important; }

  /* lessen channel padding */
  div#ytvMainBody > div#grid div.chan > h2 { padding-top: 5px !important; }

  /* hide TiVo scheduler */
  div#ytvMainBody > div#ytvNavBar + table[style="border-top: 1px solid rgb(204, 204, 204); border-bottom: 1px solid rgb(204, 204, 204);"] { display: none !important; }
}

@-moz-document url-prefix(http://tv.yahoo.com/listings)
{
  /* hide "pulse" */
  #hd > #tvbuzz { display: none !important; }

  /* hide tivo-related elements */
  #fullgrid #tivo, #fullgrid .totivo { display: none !important; }

  /* hide ad-related content */
  #fullgrid .ad, #gridright .spons, #gridright iframe {
    display: none !important;
  }

  /* lessen the font size a bit */
  * { font-size: smaller !important; }
}

@-moz-document url(http://my.yahoo.com/index.html),
               url(http://my.yahoo.com/)
{
  /* show only large column */
/*#ymypbdy > table tr:first-child > td[width="10"],
  #ymypbdy > table tr:first-child > td[width="1%"] {
    display: none !important;
  }*/

  /* hide page header, content adjustment */
/*#ygmain .tb,#ymyptb  { display: none !important; }*/

  /* hide module edit and banner rows */
/*#ygmain .ymymd > div > table:first-child {
    display: none !important;
  }*/

  /* content adjustment, footer */
/*#ycsp_W > .ymymdo + div, #ycsp_W + center, #ymycpy, #ymypbdy > br {
    display: none !important;
  }*/
}

@-moz-document domain(cnn.com)
{
  /* partner/affiliate stories on the bottom of the front page */
  div#cnnPartners { display: none !important; }

  /* no flash images (small, large) */
  img[usemap^="#no.flash."], img[src*="no.flash."] {
    display: none !important;
  }

  /* pipeline */
  /*div#CNN_homeContainer > div#CNN_homeRightCol { display: none !important; }*/

  /* make sure everything is viewable in the top stories column */
  div#cnnTopStoriesModule { font-size: small !important; }
}

@-moz-document domain(deviantart.com)
{
  /* useless "deviation" counter (</mcdonalds>) */
  #devlove { display: none !important; }
}

@-moz-document url-prefix(http://tvlistings2.zap2it.com/grid.asp?)
{
  /* get rid of the break following station images */
  td.content td > img[src^="/tms_network_logos"] + br {
    display: none !important;
  }

  /* hide descriptions, unbold program */
  td.content td > b + font[size="-2"] { display: none !important; }
  td.content td > b { font-weight: normal !important; }
  td.content b > a[href^="listings_redirect.asp?"] {
    font-weight: bold !important;
  }

  /* hide station logos, misc grid images */
  td.content img[src*="logo"] {
    display: none !important;
  }

  /* hide printable version link */
  td.content table[bordercolor=""] a { display: none !important; }

  /* top ad */
  td.content > p:first-child { display: none !important; }
}

@-moz-document domain(tvlistings2.zap2it.com)
{
  /* hide 'TV Listings' header */
  /*body > img[src="images/tvl_header.gif"] { display: none }*/
}

@-moz-document url-prefix(http://ww2.titantv.com/quickguide/quickguide.aspx),
               url-prefix(http://ww2.titantv.com/ttv/Grid/grid.aspx),
               url-prefix(http://ww2.titantv.com/ttv/grid/grid.aspx)
{
  /* use a bit smaller font */
  /** { font-size: x-small !important; }*/

  /* hide the show floater */
  /*div#popmenu { display: none !important; }*/

  /* hide page header */
  .headerBackground { display: none !important; }

  /* hide banner column header */
  /*.bannerColumnHeader { display: none !important; }*/

  /* hide banner column */
  #header + table tr:first-child > td[width="130"]:last-child {
    display: none !important;
  }

  /* hide lower banner area */
  #leaderboard { display: none !important; }

  /* ditch color scheme */
  .gC { background-color: #fff !important; }
}

@-moz-document url-prefix(http://ww2.titantv.com/)
{
  .ad { display: none !important; }
}

@-moz-document domain(slashdot.org)
{
  /* The next Slashdot story is visible early to free day pass visitors. */
  div#contents > div#index.aduserbox > div.indexhead {
    display: none !important;
  }

  div.tags { display: none !important; }

  /* notice at the top */
  div#message { display: none !important; }

  /* repair the damage from the new page-distorting ad */
  #fad6 { display: none !important; }
  #slashboxes { margin-top: 0px !important; }
  #art1, #art2, #slink1, #slink1 .comments,#slink2, #slink2 .comments { margin-right: 0px !important; }
}

@-moz-document url-prefix(http://slashdot.org/)
{
  /* make green story links stand out a bit more (lcd) */
  div.body a, div.storylinks a { color: #1b6f70 !important; }
}

@-moz-document domain(sourceforge.net)
{
  /* reset the odd 130% font size */
  pre { font-size: medium !important; }
}

@-moz-document domain(slashdot.org)
{
  /* hide the odd miniature articles */
  div#contents div#articles > div.briefarticles { display: none !important; }
}

@-moz-document domain(forums.mozillazine.org)
{
  /* hide the "Looking for help?" table on the index */
  td#main > table.supportHeader { display: none !important; }

  /* hide the "Ask New Question" oddity */
  td#main td.nav > a > span.question { display: none !important; }
}

@-moz-document domain(imdb.com)
{
  /* hide the right column (store linkage, other) */
  div#root > table[width="100%"] > tbody > tr:first-child > td[width="100%"]:last-child > table[width="100%"] > tbody > tr:first-child > td[width="171"][align="right"]:last-child { visibility: hidden !important; }

  /* hide various non-headshot/poster photos */
  div#root > table[width="100%"] td[width="100%"] td > h1 ~ table + table ~ b + table { display: none !important; }
  /*div#root > table[width="100%"] td[width="100%"] td > table[cellspacing="2"][cellpadding="2"] ~ table[cellspacing="0"][cellpadding="1"] img { display: none !important; }*/
}

@-moz-document domain(weather.com)
{
  /* golfguide map */
  div#mapModuleContainer { display: none !important; }
}

@-moz-document url-prefix(http://www.nvnews.net/vbulletin/)
{
  /* set a visited color for links on nvnews' forum */
  a:visited { color: #9494c4 !important; }
}

@-moz-document domain(packers.com), domain(lambeaufield.com)
{
  /* td[background] isn't filtered, so everything looks awful without */
  a[href^="/banner/"] img { display: inline !important; }

  /*div[id^="b"][style*="width:"] { display: none !important; }*/
}

@-moz-document domain(developer.gnome.org)
{
  /* keep the api topnav fixed at the top */
  table#top.navigation {
    background-attachment: fixed !important;
    position: relative !important;
  }
}
