Milkmeta

Front-end web developer / Wikipedian / OCD patient

FirefoxでAA系サイトだけフォント設定を変更する

自分用メモ。保障はしません。いちいちuserContent.cssを探すのが面倒ならStylishを使う手もあるけれど、拡張を入れなくても使えるやり方で。

  • 今使ってるプロファイルのuserChrome.cssと同じ場所にuserContent.cssを作る。分からないなら"userContent.css"でぐぐる。
  • userContent.cssの中身はこんな感じで、ここにサイトのURLを書く。前方一致なので余計なものは省いた方が良いかも。
    @-moz-document
    url-prefix(http://monadowa.s14.xrea.com) ,
    url-prefix(http://sunset.freespace.jp/aavideo/) ,
    url-prefix(http://live.s9.xrea.com) {
    	body {
    		font-family: "MS Pゴシック" !important;
    		font-size: 16px !important;
    	}
    }
  • Firefoxを起動する。すでに起動してたなら再起動する。
  • 確認。