HighDots Forums  

Ad-zapping user stylesheet update

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Ad-zapping user stylesheet update in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Ad-zapping user stylesheet update - 04-06-2004 , 01:39 PM






This one isn't generally applicable, it's for a specific website. But
it's a website I know most people here use from time to time
(groups.google.com), so here you go. Just add this to your user
stylesheet (watch for wrapping in the very long selectors):

/* Remove sponsored links on Google groups:- */

body[bgcolor="#ffffff"][onLoad="document.gs.reset()"][topmargin="2"][marginheight="2"]
td[bgcolor="#ffffff"][align="center"][valign="top"][rowspan="26"] {
display: none !important;
} /* The table cell that contains the advertising. */

body[bgcolor="#ffffff"][onLoad="document.gs.reset()"][topmargin="2"][marginheight="2"]
tr[bgcolor="#fff4c2"] td + td + td + td[width] {
display: none !important;
} /* The equivalent empty cell in the header row. */

body[bgcolor="#ffffff"][onLoad="document.gs.reset()"][topmargin="2"][marginheight="2"]
table[width],
body[bgcolor="#ffffff"][onLoad="document.gs.reset()"][topmargin="2"][marginheight="2"]
table[width] td
{
width: auto !important;
margin-left: auto !important;
margin-right: auto !important;
} /* Let the table find its natural size. */

body[bgcolor="#ffffff"][onLoad="document.gs.reset()"][topmargin="2"][marginheight="2"]
hr.z + table {
display: none !important;
} /* The links at page bottom. */

--
Karl Smith.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.