From 9e86add515020913f4eeca7233afb439b418d916 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sat, 9 Apr 2022 14:42:41 +0900 Subject: [PATCH] Doc: Preference - Autoconfig --- docs/Preference.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/Preference.md b/docs/Preference.md index c23154a..c5a10e3 100644 --- a/docs/Preference.md +++ b/docs/Preference.md @@ -9,6 +9,7 @@ * [about:config](#about-config) * [prefs.js](#prefsjs) * [user.js](#userjs) +- [Auto Config](#auto-config) - [Using with User Custom CSS](#using-with-user-custom-css) - [Sync](#sync) - [Related Source file](#related-source-file) @@ -48,7 +49,7 @@ Key information on the sets that can be used in the configuration file. The following is a method of operating the configuration file parser. See [EBNF(Extended Backus-Naur form)](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) if you want to know about syntax. -```text +```ebnf = * = "(" "," ")" ";" = "user_pref" | "pref" | "sticky_pref" // in default pref files @@ -129,6 +130,24 @@ user_pref("layout.css.prefers-color-scheme.content-override", 3); // Int user_pref("general.smoothScroll.currentVelocityWeighting", "0.12"); // String ``` +## Auto Config +**Related Docs** +- [Support Mozilla: Customizing Firefox Using AutoConfig](https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig) + +**Basics** + +**How to** +```javascript +pref("general.config.filename", "config.js"); // alternative to "firefox.cfg", for using highlight +pref("general.config.obscure_value", 0); +``` + +**Example** +```javascript +pref("general.config.filename", "config.js"); // alternative to "firefox.cfg", for using highlight +pref("general.config.obscure_value", 0); +``` + ## Using with User Custom CSS **Related Docs** - [MDN: @supports](https://developer.mozilla.org/en-US/docs/Web/CSS/@supports)