黒背景gtkテーマで文字色が背景と混ざって見分けにくい時

Blue Joyのような黒背景gtkテーマを使うと、特定のサイトにおいて(例えばbugzilla.redhat.com)ボタンやフォームの背景色が文字色と近いため、何が書いてあるか見分けにくいときがある。これはサイト側が文字色もしくは背景色の片方のみを指定していることが原因だが、ユーザースタイルシートを使って強制的にgtkテーマの配色を反映させることで問題を回避できる。
userContent.cssStylish拡張を使って、以下のいずれかのように書き込む。

    • userContent.cssを使う場合
/* この例は全てのサイトに問答無用に適応される。*/
input, textarea, select {
  color : -moz-fieldtext !important ;
  background-color : -moz-field !important ;
}
/* この例は特定のドメイン(ここではbugzilla.redhat.comとhigaitaisaku.com)に適応される。*/
@-moz-document domain("bugzilla.redhat.com"), domain("higaitaisaku.com") {
  input, textarea, select {
    color : -moz-fieldtext !important ;
    background-color : -moz-field !important ;
  }
}
@namespace url(http://www.w3.org/1999/xhtml);
/*この例は、httpで始まる全てのサイトに問答無用に適用される。
url-prefixを指定することで、ブラウザのインターフェイスに適応されない様にしている。*/
@-moz-document url-prefix("http") {
  input, textarea, select {
    color : -moz-fieldtext !important ;
    background-color : -moz-field !important ;
  }
}

/*この例は、特定のドメイン(ここではbugzilla.redhat.comとhigaitaisaku.com)にのみ反映される。*/
@-moz-document domain("bugzilla.redhat.com"), domain("higaitaisaku.com") {
  input, textarea, select {
    color : -moz-fieldtext !important ;
    background-color : -moz-field !important ;
  }
}