![Page 1: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/1.jpg)
DebianでFirefoxをカスタマイズするには
DebianでFirefoxをカスタマイズするには
How to customize Firefox on Debian
Kentaro HayashiClearCode Inc.
Mini Debian Conference Japan 2016
2016-12-10
![Page 2: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/2.jpg)
自己紹介(1)Profile
Twitter/GitHub: @kenhys
所属: トラックポイント・ソフトドーム派
![Page 3: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/3.jpg)
自己紹介(2)Profile
トラックポイント・ソフトドーム派
![Page 4: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/4.jpg)
参考画像の出典
http://www.irasutoya.com/
![Page 5: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/5.jpg)
パッケージ関連の活動As a contributor
groonga (全文検索エンジン)
groonga-normalizer-mysql
libhinawa
fcitx-imlist
hal-flash (Flashを延命させるアレ)
growl-for-linux
![Page 6: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/6.jpg)
閑話休題
そろそろ本題にBack on topic
![Page 7: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/7.jpg)
本日の話題Today's topics
FirefoxのカスタマイズのことAbout how to customize Firefox
![Page 8: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/8.jpg)
話さないことI don't talk about...
アドオンの作り方How to create addon
WebExtensions
![Page 9: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/9.jpg)
会場のみなさんに質問Question 1
ブラウザは何を使っていますか?What browsers do you love?
![Page 10: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/10.jpg)
ブラウザシェアBrowser stats
デスクトップにおけるシェアの推移(by StatCounter)
![Page 11: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/11.jpg)
chromium on debian
![Page 12: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/12.jpg)
firefox on debian
![Page 13: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/13.jpg)
iceweasel on debian
![Page 14: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/14.jpg)
firefox-esr on debian
![Page 15: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/15.jpg)
会場のみなさんに質問Question 2
Firefoxカスタマイズしていますか?Do you customize Firefox?
![Page 16: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/16.jpg)
カスタマイズいろいろCustomizing ...
設定メニューからオプションを変更Tweak via options
アドオンをインストールInstall addons
user.jsを修正するModify user.js
システム全体の設定System-wide configuration
![Page 17: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/17.jpg)
カスタマイズいろいろCustomizing ...
設定メニューからオプションを変更Tweak via options
アドオンをインストールInstall addons
user.jsを修正するModify user.js
システム全体の設定System-wide configuration
![Page 18: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/18.jpg)
アドオンをインストールInstall addons
https://addons.mozilla.org/en-US/firefox/
![Page 19: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/19.jpg)
必須のアドオンMust install these addons
Tab Groups
ツリー型タブTree Style Tab
Vimperator
注:個人の感想です。Personally, I recomends these addons
![Page 20: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/20.jpg)
アドオン on debianAddons on debian
$ apt search xul | grep xul-ext | wc -l79
aptでインストール可能なパッケージがこれだけある
![Page 21: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/21.jpg)
aptでインストールEasy to install by apt
$ sudo apt install xul-ext-iceweasel-branding
![Page 22: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/22.jpg)
Iceweasel風FirefoxMimic iceweasel
Firefoxを使っていたと思ったらIceweaselだった
![Page 23: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/23.jpg)
インストールのされかたHow xpi is installed?
xpiそのままインストールInstall xpi as is
展開済みのaddonとしてインストールInstall as unpacked addon
![Page 24: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/24.jpg)
拡張はどこに?Where is extension installed?
$ dpkg -S /usr/lib/firefox/browser/extensions/\{972ce4c6-7e08-4474-a285-3208198ce6fd\}.xpifirefox: /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
デフォルトのテーマはxpiとしてインストールされている
![Page 25: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/25.jpg)
拡張はどこに?Where is extension installed?
/usr/share/xul-ext/iceweasel-brandingに展開
/usr/share/xul-ext/iceweasel-branding├── chrome│ ├── content│ │ ├── about-logo.png│ │ ├── [email protected]│ │ ├── about-wordmark.png│ │ ├── about-wordmark.svg│ │ ├── about.png│ │ ├── aboutDialog.css│ │ ├── aboutIceweasel│ │ │ ├── aboutIce.js│ │ │ ├── aboutIce.manifest│ │ │ └── ice.xhtml│ │ ├── browser-overlay.css│ │ ├── icon128.png│ │ ├── icon16.png│ │ ├── icon32.png│ │ ├── icon48.png│ │ ├── icon64.png│ │ └── unofficial│ │ ├── identity-icons-brand.svg│ │ └── silhouette-40.svg│ └── locale│ ├── brand.dtd│ ├── brand.properties│ └── ice.dtd├── chrome.manifest├── icon.png├── icon64.png└── install.rdf
![Page 26: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/26.jpg)
カスタマイズいろいろCustomizing ...
設定メニューからオプションを変更Tweak via options
アドオンをインストールInstall addons
user.jsを修正するModify user.js
システム全体の設定System-wide configuration
![Page 27: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/27.jpg)
user.jsを修正するModify user.js
伝統的なカスタマイズ方法Traditional way to customize
~/.mozilla/firefox/(プロファイル)/user.jsに置くPut user.js as ~/mozilla/firefox/(profile)/user.js
![Page 28: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/28.jpg)
user.jsの例Example how to customize user.js
user_pref("browser.tabs.closeWindowWithLastTab", false);
最後のタブを閉じたときにウィンドウを閉じないDo not close window even though last tab is closed
![Page 29: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/29.jpg)
user.jsは万能ではないuser.js is suitable for specific purpose
プロファイルごとに設定Need to configure each profile
プロファイルで管理されていない項目は不可It should be managed by profile
集中管理するのには不向きNot suitable for centralized management
FirefoxSyncでよいのでは?FirefoxSync may be better solution?
![Page 30: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/30.jpg)
カスタマイズいろいろCustomizing ...
設定メニューからオプションを変更Tweak via options
アドオンをインストールInstall addons
user.jsを修正するModify user.js
システム全体の設定System-wide configuration
![Page 31: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/31.jpg)
システム全体の設定はHow to do system-wide configuration?
/etc/firefox/*.js
/etc/firefox/以下に置いた任意の.jsで設定できるAny *.js is ok under /etc/firefox/
![Page 32: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/32.jpg)
Debian固有の設定Debian specific configuration
設定ファイルの場所The configuration file is:
/usr/lib/firefox/browser/defaults/syspref/firefox.js-> /etc/firefox/firefox.js
![Page 33: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/33.jpg)
Debian固有の設定(1)Debian specific configuration
拡張の更新を有効Enable to update extensions
pref("extensions.update.enabled", true);
![Page 34: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/34.jpg)
Debian固有の設定(2)Debian specific configuration
LANGに応じてロケールを設定Use LANG environment variable to choose locale
pref("intl.locale.matchOS", true);
![Page 35: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/35.jpg)
Debian固有の設定(3)Debian specific configuration
既定のブラウザチェック無効Disable default browser checking
pref("browser.shell.checkDefaultBrowser", false);
![Page 36: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/36.jpg)
Debian固有の設定(4)Debian specific configuration
OpenH264は無効Disable OpenH264
pref("media.gmp-gmpopenh264.enabled", false);
![Page 37: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/37.jpg)
Debian固有の設定(5)Debian specific configuration
新規タブはクラシックスタイルにDefault to classic view for about:newtab
sticky_pref("browser.newtabpage.enhanced", false);
![Page 38: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/38.jpg)
Debian固有の設定(6)Debian specific configuration
ヘルスレポートは無効Disable health report upload
pref("datareporting.healthreport.uploadEnabled", false);
![Page 39: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/39.jpg)
設定方法いろいろpref(...) family
defaultPref('...')
lockPref('...')
pref('...')
sticky_pref('...')
![Page 40: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/40.jpg)
defaultPref('...')
初期設定値を指定
prefs.jsには原則保存されない
![Page 41: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/41.jpg)
lockPref('...')
設定を変更させない
![Page 42: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/42.jpg)
pref('...')
ユーザーが変更可能
![Page 43: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/43.jpg)
sticky_pref('...')
prefs.jsにデフォルト値に関わらず保存
通常は設定を変更したらprefs.jsに保存
![Page 44: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/44.jpg)
組織向けにFirefoxをFirefox for organizations
個人なら好きにカスタマイズでいい
組織利用はまた別の観点が必要
![Page 45: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/45.jpg)
組織利用の観点だとPoint of view from organizations
プロキシの設定をしたい
統計情報は送りたくない
勝手にアップデートしない
![Page 46: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/46.jpg)
組織内向けカスタマイズHow to customize for organization
Mozilla Japan 法人向け情報
https://www.mozilla.jp/business/
![Page 47: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/47.jpg)
参考記事の紹介(1)Blog entry how to customize
「Firefox・Thunderbirdの組織内向けカスタマイズの方法の簡単な紹介と比較」
http://www.clear-code.com/blog/2014/3/27.html
![Page 48: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/48.jpg)
参考記事の紹介(2)Blog entry how to customize
user.js
MCD
ActiveDirectoryのポリシー
CCK2 Wizard
その他
![Page 49: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/49.jpg)
MCD?
McDonald?
![Page 50: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/50.jpg)
MCDとは?What is MCD?
Mission Control Desktop
Netscape由来の集中管理機構
autoconfig.jsとautoconfig.cfg
![Page 51: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/51.jpg)
autoconfig.js
/usr/lib/firefox/pref/autoconfig.js
pref("general.config.filename", "autoconfig.cfg");pref("general.config.vendor", "autoconfig");pref("general.config.obscure_value", 0);
![Page 52: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/52.jpg)
autoconfig.cfg
/usr/lib/firefox/autoconfig.cfg
// 1行目は必ずコメントとしてください。lockPref("autoadmin.global_config_url", "http://xxx/autoconfig.jsc");
![Page 53: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/53.jpg)
autoconfig.jsc
ネットワーク経由で参照可能な場所に配置
中身は単なるprefやlockPref
![Page 54: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/54.jpg)
こんなときどうする?
設定例がわからなくて困った
「技術的なよくある質問」
https://www.mozilla.jp/business/faq/tech/
![Page 55: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/55.jpg)
こんなときどうする?
「技術的なよくある質問」をみても解決しない
![Page 56: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/56.jpg)
firefox-support-common
https://github.com/clear-code/firefox-support-common
![Page 57: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/57.jpg)
firefox-support-common
カスタマイズ事例集のリポジトリThere are use cases in this repository
![Page 58: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/58.jpg)
firefox-support-common
configurations/customization-items.ods
具体的なカスタマイズ方法が記載Practical use cases are there
![Page 59: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/59.jpg)
customization-items.ods
カスタマイズ事例をシートで分類
customization-items
menuitem-shortcut-disable-items
misc-ui-disable-items
![Page 60: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/60.jpg)
customization-items.ods
カスタマイズ事例をシートで分類
customization-items
menuitem-shortcut-disable-items
misc-ui-disable-items
![Page 61: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/61.jpg)
customization-items
ポリシーを満たすための設定例
セキュリティ
プライバシー
自動更新
Firefox38/45ESRでの設定方法/設定内容
![Page 62: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/62.jpg)
customization-items.ods
カスタマイズ事例をシートで分類
customization-items
menuitem-shortcut-disable-items
misc-ui-disable-items
![Page 63: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/63.jpg)
menuitem-shortcut-disable-items
メニューのショートカットを無効にするための設定
ショートカットから実行できてはまずい
Firefox38/45ESRでの設定方法/設定内容
![Page 64: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/64.jpg)
customization-items.ods
カスタマイズ事例をシートで分類
customization-items
menuitem-shortcut-disable-items
misc-ui-disable-items
![Page 65: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/65.jpg)
misc-ui-disable-items
非表示にしたい項目の設定例
例:セキュリティパネル非表示化
Firefox38/45ESRでの設定方法/設定内容
![Page 66: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/66.jpg)
どうやって?How?
カスタマイズ用のアドオンを活用Use specific addons to customize
![Page 67: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/67.jpg)
カスタマイズのアドオンAddon to customize
GlobalChrome.css
UI Text Overrider
Force Addon Status
![Page 68: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/68.jpg)
カスタマイズのアドオンAddon to customize
GlobalChrome.css
UI Text Overrider
Force Addon Status
![Page 69: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/69.jpg)
GlobalChrome.css
ユーザースタイルシート機能Provides user stylesheet
globalChrome.cssを所定の場所に配置Put globalChrome.css in specific path
https://addons.mozilla.org/ja/firefox/addon/globalchromecss/
![Page 70: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/70.jpg)
カスタマイズのアドオンAddon to customize
GlobalChrome.css
UI Text Overrider
Force Addon Status
![Page 71: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/71.jpg)
UI Text Overrider
UI要素のラベルやツールチップテキストなどを変更Enable to customize UI labels, tooltips and so on
https://addons.mozilla.org/ja/firefox/addon/ui-text-overrider/
![Page 72: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/72.jpg)
カスタマイズのアドオンAddon to customize
GlobalChrome.css
UI Text Overrider
Force Addon Status
![Page 73: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/73.jpg)
Force Addon Status
アドオンの有効・無効の状態を強制的に変える機能
https://addons.mozilla.org/ja/firefox/addon/force-addon-status/
![Page 74: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/74.jpg)
できることの一例
単機能アドオンの組み合わせでkiosk端末っぽく
参考:全部入りのkioskモード
https://addons.mozilla.org/ja/firefox/addon/mkiosk/
![Page 75: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/75.jpg)
使い方
odsに記載のサンプルコードをコピペ
目的に応じて個別の設定例をコピペ
![Page 76: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/76.jpg)
GlobalChrome.css
@-moz-document url-prefix("chrome://browser/content/browser.xul") { (セレクタ), *[always-hidden="true"] { display: none !important; -moz-user-focus: ignore !important; }}
![Page 77: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/77.jpg)
UI Text Overrider(1)
// disable shortcuts and UIvar killedItems = [];var killedItemsWithDelay = [];var hiddenItemsWithDelay = [];
![Page 78: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/78.jpg)
UI Text Overrider(2)
killedItems.push("(ここにセレクタを記載)");
![Page 79: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/79.jpg)
UI Text Overrider(3)
function setKillItemRule(aIdentifier, aSelector, aDelayed, aDisableCommand) { lockPref("[email protected]." + aIdentifier, aSelector); lockPref("[email protected]." + aIdentifier + ".disabled", "true"); lockPref("[email protected]." + aIdentifier + ".hidden", "true"); lockPref("[email protected]." + aIdentifier + ".readonly", "true"); if (aDisableCommand) { lockPref("[email protected]." + aIdentifier + ".command", ""); lockPref("[email protected]." + aIdentifier + ".oncommand", ""); } lockPref("[email protected]." + aIdentifier + ".always-hidden", "true"); lockPref("[email protected]." + aIdentifier + ".delayed", aDelayed == true);}setKillItemRule("killedItems", killedItems.join(","), false, true);setKillItemRule("killedItemsWithDelay", killedItemsWithDelay.join(","), true, true);setKillItemRule("hiddenItemsWithDelay", hiddenItemsWithDelay.join(","), true, false);
![Page 80: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/80.jpg)
Force Addon Status
lockPref("[email protected]", "^Java(\\(TM\\)| )");lockPref("extensions.force-addon-status@clear-code.com.plugins.0.enabledState", 0);"
![Page 81: DebianでF irefoxを カスタマイズするには§F irefoxを カスタマイズするには How to customize Firefox on Debian Kentaro Hayashi ClearCode Inc. Mini Debian Conference](https://reader033.vdocuments.mx/reader033/viewer/2022051205/5afc6f5f7f8b9a32349048e9/html5/thumbnails/81.jpg)
まとめ
集中管理ならまずはMCDがよい
カスタマイズ専用アドオンが役立つ
過去のノウハウはfirefox-support-commonをチェック