
domain.cls 作成者: Bruce Wen
Add 'domain' to body class
この拡張機能を使用するには Firefox が必要です
拡張機能メタデータ
この拡張機能について
Most web sites pages don't use the domain name as body class to distinguish from other web sites' pages. That makes web page appearance customization hard in some degree. The reason is that people have to distinguish web sites by specific configuration (by domain name, regex etc).
By adding domain name to body classList, the problem could be solved. Web/UI/UX developers can create customized styl, css scripts to re-design web page appearance easily - they can put all customization script together for different web sites and don't need to care about collision.
For example, after using the add-on, the web page will be changed to add domain name to body class attribute.
<body class="mozilla ">
<body class="apache">
Then, in styl or css script file, developer can make customization like below:
body.mozilla {font-size: 15px}
body.apache {font-size: 16px}
By adding domain name to body classList, the problem could be solved. Web/UI/UX developers can create customized styl, css scripts to re-design web page appearance easily - they can put all customization script together for different web sites and don't need to care about collision.
For example, after using the add-on, the web page will be changed to add domain name to body class attribute.
<body class="mozilla ">
<body class="apache">
Then, in styl or css script file, developer can make customization like below:
body.mozilla {font-size: 15px}
body.apache {font-size: 16px}
あなたの体験を評価
この開発者を支援する
この拡張機能の開発者は、開発を続けていくため、少額の寄付による支援を求めています。
Permissions and data詳細情報
必要な権限:
- すべてのウェブサイトの保存されたデータへのアクセス
詳しい情報
- アドオンリンク
- バージョン
- 1.6
- サイズ
- 68.21 KB
- 最終更新日
- 3年前 (2022年2月22日)
- 関連カテゴリー
- ライセンス
- Mozilla Public License 2.0
- バージョン履歴
コレクションへ追加
1.6 のリリースノート
To support sub-domain like en.wikipedia.org, we need to use en_wikipedia as body class to distinguish other language version of wikipedia. Similar, google translate should have different body class from gmail.
Bruce Wen が公開している他の拡張機能
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
By adding domain name to body classList, it's easier to define styl, css scripts for specific web sites/pages belong to the same domain without worry about collision among different domains.