Skip to content

Instantly share code, notes, and snippets.

@alexandre-mbm
Last active October 31, 2015 21:57
Show Gist options
  • Save alexandre-mbm/ed28e256855750d93060 to your computer and use it in GitHub Desktop.
Save alexandre-mbm/ed28e256855750d93060 to your computer and use it in GitHub Desktop.
Treinando customização de Firefox a partir dos tutoriais de mike.kaply.com

Customizing Firefox

  • Default Preference Files
  • Autoconfig Files
  • Autoconfig Files (Continued)
  • Advanced Autoconfig Files
  • distribution.ini
  • Default Profiles
  • Disabling Safe Mode
  • Extensions and the CCK Wizard

Default Preference Files

O artigo explica o básico sobre about:config.

Treino:

$ which firefox
/usr/bin/firefox
$ ls -la /usr/bin/firefox
lrwxrwxrwx 1 root root 24 Out 15 17:38 /usr/bin/firefox -> /usr/lib/firefox/firefox
$ ls /usr/lib/firefox/
application.ini  components          dictionaries  gmp-clearkey  omni.ja           plugins         webapprt
browser          defaults            firefox       hyphenation   platform.ini      removed-files   webapprt-stub
chrome.manifest  dependentlibs.list  firefox-bin   libxul.so     plugin-container  run-mozilla.sh
$ ls /usr/lib/firefox/defaults/pref/
channel-prefs.js
$ cat /usr/lib/firefox/defaults/pref/channel-prefs.js
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

pref("app.update.channel", "default");
$ ls -la /usr/lib/firefox/defaults/pref/channel-prefs.js
-rw-r--r-- 1 root root 245 Out 15 17:38 /usr/lib/firefox/defaults/pref/channel-prefs.js

Principais lições:

  • Não é possível sobrescrever todas as preferências
  • Não é possível travar preferências
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment