[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to specify StyleSheet in Firefox



Kent West wrote:
I thought Mozilla allowed one to specify a custom stylesheet, and yet I'm finding no option for that in FireFox. Am I missing something? I did a google and went to the FireFox Extensions page and searched fro "style", but didn't find anything that really looked promising. EditCSS looked the most promising, but the description doesn't sound like the user tool I thought Moz browsers had.

Perhaps my understanding of custom stylesheets is faulty; I thought you could create a local stylesheet (or several), and then specify FireFox to use that stylesheet for rendering custom versions of HTML mark-up, like custom versions of the <H1> tag, etc.


The file gets placed in ~/.phoenix/default/<random_chars>.slt/chrome/
asd is called userContent.css.

I have one that blocks 99.9% of ads and places a white box with "click
here to play" whenever any Flash ads would appear.  It shoud work in
any Mozilla Browser.

-Roberto Sanchez

Herer is the one I use:

/*
 * 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.
 */

/*
 * 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*="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*="promo"] IMG { display: none ! important }
A:link[HREF*="adlog"] IMG { display: none ! important }
A:link[HREF*="clickthru"] 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*="promo"]  { display: none ! important }
IFRAME[SRC*="adlog"]  { display: none ! important }

/* IMG[usemap] { display: none ! important } */

/* turning some false positives back off */

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

/* Doesn't work for <embed> tags, which are less common than <object> tags - bug 190970 */
object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"]
{ -moz-binding: url("http://www.cs.hmc.edu/~jruderma/flash.xml#obj";); }

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

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: