Skip to content

Instantly share code, notes, and snippets.

@ssp
Created June 10, 2010 21:42
Show Gist options
  • Save ssp/433683 to your computer and use it in GitHub Desktop.
Save ssp/433683 to your computer and use it in GitHub Desktop.
Custom Style Sheet for Safari, includes Reader fix, Spiegel Online crap removal, improved legibility and vanity stuff.
/* SPIEGEL ONLINE **************/
div.spArticleImageBox, div.spMultimediaLeiste, div.spForumBoxBig, div.spRessortTeaserBox.panorama, div.spRessortTeaserBox.sport, div.spRessortTeaserBox.einestages, div.spRessortTeaserBox.auto, div.spRessortTeaserBox.reise, div.spRessortTeaserBox.spam {
display:none;
}
/* TWITTER **************/
.tab .doing, #side #currently {
word-wrap: break-word;
}
/* SAFARI 5 READER **************/
#article, .page {
text-align: left!important;
}
/******* BASIC SETTINGS *********/
* {
text-rendering: optimizeLegibility;
}
a {
text-decoration:none;
}
/*********** VANITY ***************/
a[href*="earthlingsoft.net/"] {
background-color: yellow !important;
}
a[href*="earthling.dyndns.org/"], a[href*="-lauenbrueck.de/"], a[href*="camping-kanu-wuemme"], a[href*="birgitloeding.de/"], a[href*="bibdesk.sourceforge.net"], a[href*="library.uni-math.gwdg.de"], a[href*="crcg.de/arXivTo"] {
background-color: green !important;
color: white !important;
}
img[src*="earthlingsoft.net/ssp/blog/graphics/"] {
background: red;
}
img[src*="earthlingsoft.net/ssp/blog/graphics2/"], a[href*="earthlingsoft.net/ssp/blog/graphics2/"] {
background: #bbb;
border: 2px #bbb dashed;
}
/****** SHOW INVISIBLES **********/
#styleswitcher {
display:block!important;
background:red;
}
/******* EXTRA ICONS *************/
a[href^="itms"]:before
{
vertical-align:middle;
padding-right:2px;
content: url(file:///Users/ssp/Library/Safari/css/iTunesStore.png);
}
a[href^="afp"]:before
{
vertical-align:middle;
padding-right:2px;
content: url(file:///Users/ssp/Library/Safari/css/AFPVolume.png);
}
/******* AD HIDING **********/
img[width="468"][height="60"] {
display: none !important;
}
img[src*="doubleclick.net"] {
display:none !important;
}
img [src*="valuead.com"] {
display:none !important;
}
a [href^="http://ad.doubleclick.net"] {
display:none !important;
}
/* this hides the usual 468x60 Flash banner ads */
embed[type="application/x-shockwave-flash"][width="468"][height="60"] {
display: none !important;
visibility: hidden !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;
visibility: hidden !important;
}
/*
a[href$="xml"] {
background-color:red !important;
font-size:40px !important;
position:fixed;
top:10px;
left:10px;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment