Created
July 30, 2012 15:27
-
-
Save ruilapa/3207798 to your computer and use it in GitHub Desktop.
Firefox Puppet Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
// Firefox Puppet Config | |
// | |
// Rui Lapa - 2010-12-09 | |
//////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////// | |
// Private Browsing | |
//////////////////////////////////////////////////////////// | |
lockPref("browser.privatebrowsing.autostart", false); | |
//////////////////////////////////////////////////////////// | |
// Turning off Plugin Container | |
//////////////////////////////////////////////////////////// | |
user_pref("dom.ipc.plugins.enabled", false); | |
user_pref("dom.ipc.plugins.enabled.libnpjp2.so", false); | |
lockPref("dom.ipc.plugins.enabled.libflashplayer.so", true); | |
user_pref("dom.ipc.plugins.timeoutSecs", 15); | |
//////////////////////////////////////////////////////////// | |
// Turning off annoyances | |
//////////////////////////////////////////////////////////// | |
pref("extensions.update.enabled", true); | |
// Disable default browser checking. | |
pref("browser.shell.checkDefaultBrowser", false); | |
// Prevent EULA dialog to popup on first run | |
pref("browser.EULA.override", true); | |
// Disable blinking text: | |
user_pref("browser.blink_allowed", false); | |
// Image animation mode: normal, once, none. | |
// This pref now has UI under Privacy & Security->Images. | |
lockPref("image.animation_mode", "normal"); | |
// Show pref UI to block images that don't come from the current server | |
// This is shown by default in Mozilla. | |
user_pref("imageblocker.enable", true); | |
// BUG IGEL | |
// RLAPA - 2010-11-19 | |
pref("browser.zoom.full", false); | |
// Turn that annoying autocomplete popup REALLY off: | |
// (This actually has a UI but it's buried.) | |
user_pref("browser.urlbar.autocomplete.enabled", true); | |
user_pref("browser.urlbar.showPopup", true); | |
user_pref("browser.urlbar.showSearch", true); | |
pref("browser.urlbar.maxRichResults", 0); | |
lockPref("browser.history_expire_days_min", 30); | |
lockPref("browser.cache.memory.capacity", 2048); | |
// Javascript Memory Limit | |
pref("javascript.options.mem.high_water_mark", 128); | |
pref("javascript.options.mem.max", -1); | |
pref("javascript.options.mem.gc_per_compartment", true); | |
pref("javascript.options.mem.disable_explicit_compartment_gc", true); | |
pref("javascript.options.mem.gc_incremental", true); | |
pref("javascript.options.mem.gc_incremental_slice_ms", 10); | |
pref("javascript.options.mem.log", false); | |
pref("javascript.options.mem.notify", false); | |
pref("javascript.options.gc_on_memory_pressure", true); | |
lockPref("browser.sessionhistory.max", 3); | |
lockPref("browser.sessionhistory.max_entries", 3); | |
lockPref("browser.sessionhistory.max_total_viewers", 2); | |
lockPref("browser.bookmarks.max_backups", 2); | |
lockPref("browser.cache.offline.enable", false); | |
lockPref("network.dnsCacheEntries", 100); | |
lockPref("browser.safebrowsing.enabled", false); | |
lockPref("browser.safebrowsing.malware.enabled", false); | |
lockPref("browser.sessionrestore.enabled", false); | |
lockPref("browser.sessionstore.interval", 120000); | |
user_pref("browser.sessionstore.max_tabs_undo", 4); | |
user_pref("browser.sessionstore.max_windows_undo", 4); | |
// Turn off the download manager (0=download manager, 1=simple dialog?) | |
user_pref("browser.downloadmanager.behavior", 1); | |
user_pref("browser.download.manager.retention", 1); | |
// Enable the marquee tag (disabled by default): | |
user_pref("browser.display.enable_marquee", true); | |
//////////////////////////////////////////////////////////// | |
// Platform parity/UI issues | |
//////////////////////////////////////////////////////////// | |
// Key modifier stuff: see bug 22515 | |
// Motif-style access keys: | |
// user_pref("ui.key.accelKey", 18); | |
// user_pref("ui.key.menuAccessKey", 0); | |
//user_pref("ui.key.menuAccessKeyFocuses", false); | |
// Windows-style access keys: | |
//user_pref("ui.key.accelKey", 17); | |
//user_pref("ui.key.menuAccessKey", 18); | |
//user_pref("ui.key.menuAccessKeyFocuses", true); | |
// Uncomment this to turn off Unix-style autocopy | |
// (or set it to true to turn it on on non-Unix platforms): | |
//user_pref("clipboard.autocopy", false); | |
// Middle mouse prefs: true by default on Unix, false on other platforms. | |
user_pref("middlemouse.paste", true); | |
user_pref("middlemouse.openNewWindow", true); | |
user_pref("middlemouse.contentLoadURL", true); | |
user_pref("middlemouse.scrollbarPosition", true); | |
// Newline paste behavior: 0=paste unchanged, 1=paste only | |
// first line, 2=replace with spaces, 3=strip newlines | |
//user_pref("editor.singleLine.pasteNewlines", 0); | |
// Bug in Netscape 6 branch: drag out of frame style pref was | |
// never initialized on Unix, so dragging below a line of text | |
// doesn't snap selection to the end of the line. | |
//pref("browser.drag_out_of_frame_style", 1); | |
//////////////////////////////////////////////////////////// | |
// UI look-and-feel issues | |
//////////////////////////////////////////////////////////// | |
// Tab focus model bit field: | |
// 1 focuses text controls, 2 focuses other form elements, | |
// 4 adds links. | |
// Most users will want 1, 3, or 7. | |
user_pref("accessibility.tabfocus", 1); | |
// Don't ever show me a font smaller than this: see bug 30910. | |
// This is the new cross-platform pref; the old Unix-only | |
// font.min-size pref is deprecated and will be removed soon. | |
// A UI is now in place for this pref, and can be found under | |
// Appearance->Fonts. | |
// user_pref("font.minimum-size.x-western", 13); | |
// X font banning: see bug 104075. | |
// Ban all arial fonts, because abiword installs an ugly one | |
// and there doesn't seem to be a good one available: | |
// user_pref("font.x11.rejectfontpattern", "fname=.*arial.*"); | |
// Some alternate forms for rejectfontpattern: | |
// "fname=.*arial.*;scalable=.*;outline_scaled=.*;\ | |
// xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*"); | |
// "fname=-zz-abiword.*;scalable=false;outline_scaled=false;"); | |
// Alternately, reject font if accept pattern does not match it: | |
//user_pref("font.x11.acceptfontpattern", ".*"); | |
// Set the submenu delay to be really long. | |
// This means that menus will stay posted until I click somewhere, | |
// making them behave more like Motif menus instead of un-posting | |
// whenever my mouse strays one pixel off the menu or cuts | |
// across the border between a menu and a submenu: | |
user_pref("ui.submenuDelay", 7000); | |
// Typeahead find configuration: | |
user_pref("accessibility.typeaheadfind", true); | |
user_pref("accessibility.typeaheadfind.linksonly", true); | |
user_pref("accessibility.typeaheadfind.startlinksonly", false); | |
user_pref("accessibility.typeaheadfind.timeout", 5000); | |
// Set select colors for text: | |
// user_pref("ui.textSelectBackground", "green"); | |
// user_pref("ui.textSelectForeground", "white"); | |
// Select color for typeahead find is slightly different: | |
// user_pref("ui.textSelectBackgroundAttention", "blue"); | |
// Not clear when/if widgetSelectBackground ever gets called: let's find out. | |
// user_pref("ui.widgetSelectBackground", "orange"); | |
// Disable Image Dragging | |
lockPref("nglayout.enable_drag_images", false); | |
//////////////////////////////////////////////////////////// | |
// Control of popup windows | |
//////////////////////////////////////////////////////////// | |
// Use configurable security policies to override popups, see | |
// http://www.mozilla.org/projects/security/components/ConfigPolicy.html | |
// Turn window.open off for particular sites: | |
user_pref("capability.policy.popupsites.Window.open","allAccess"); | |
// Or turn it off everywhere: | |
user_pref("capability.policy.default.Window.open","allAccess"); | |
lockPref("dom.popup_maximum", -1); | |
lockPref("dom.successive_dialog_time_limit", 0); | |
// Disable JS windows popping up without direct action from the user | |
// (as lots of porn and spam sites do): | |
// (All recent Firefox and Suite builds have a UI for this pref) | |
user_pref("dom.disable_open_during_load", false); | |
// Open links from external apps into a new tab | |
// (Firefox 1.0 builds have a UI for this pref in the Options dialog) | |
// (May not work quite right in 1.8a Suite builds on Windows) | |
user_pref("browser.link.open_external", 3); | |
// Force new windows into tabs | |
// (Firefox 1.0+ builds have a UI for this pref in the Options dialog) | |
pref("browser.link.open_newwindow", 2); | |
// Don't focus new tabs opened by left-click or external URL | |
user_pref("browser.tabs.loadDivertedInBackground", true); | |
// Don't focus new tabs opened by middle-click or ctrl-click | |
// (All recent Firefox and Suite builds have a UI for this pref) | |
user_pref("browser.tabs.loadInBackground", true); | |
// It is now possible to disable the JavaScript window.open() method | |
// when it is not called as a result of a mouse click. | |
// When the dom.disable_open_click_delay pref is set to a non-zero | |
// number, window.open will fail when called more than that number | |
// of milliseconds after a mouse click. | |
user_pref("dom.disable_open_click_delay", 1000); | |
//////////////////////////////////////////////////////////// | |
// Miscellaneous stuff | |
//////////////////////////////////////////////////////////// | |
// Override the default user-agent string: | |
// user_pref("general.useragent.override", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0; hi, Mom) Gecko/20020604"); | |
// Syntax highlighting in View Source. | |
// This has a UI under Appearance->Colors | |
user_pref("browser.view_source.syntax_highlight", true); | |
// In chatzilla, show original text in addition to smiley substitutions: | |
user_pref("extensions.irc.munger.smileyText", true); | |
// Wrap column for html output from the editor: | |
user_pref("editor.htmlWrapColumn", 80); | |
// Show JS warnings. This is also available in the Debug panel | |
// under Preferences. | |
user_pref("javascript.options.strict", true); | |
// Change default paper size from US-Letter to A4: | |
user_pref("print.postscript.paper_size", "A4"); | |
//////////////////////////////////////////////////////////// | |
// Useful mail/news prefs | |
//////////////////////////////////////////////////////////// | |
// 0=bottom 1=top 2=select+bottom 3=select+top | |
// Mozilla defaults it to 0, but Netscape defaults it to 1 (yuck). | |
user_pref("mailnews.reply_on_top", 0); | |
// Show the user agent of incoming messages | |
user_pref("mailnews.headers.showUserAgent", true); | |
// Turn off the history addrbook | |
user_pref("mail.collect_email_address", false); | |
// Turn off graphical reply style in the message window | |
user_pref("mail.quoted_graphical", false); | |
// display glyph, see http://www.bucksch.org/1/projects/mozilla/16507 | |
user_pref("mail.display_glyph", true); | |
// use HTML-style quoting for quoting plain text (during HTML replies) | |
user_pref("mail.quoteasblock", true); | |
// Format=flowed prefs, RFC 2646 | |
user_pref("mailnews.send_plaintext_flowed", true); | |
user_pref("mailnews.display.disable_format_flowed_support", true); | |
user_pref("mail.display_struct", true); | |
user_pref("mail.send_struct", false); | |
// POPUPS | |
// Make the above pref apply only to targeted links, not window.open | |
user_pref("browser.link.open_newwindow.restriction", 1); | |
user_pref("privacy.popups.policy", 1); | |
// TWEAKS | |
user_pref("network.online", true); | |
user_pref("network.dns.disableIPv6", true); | |
// Profile Migration (inc. Upgrades) | |
user_pref("profile.allow_automigration", true); | |
user_pref("profile.confirm_automigration", false); | |
// Updates | |
user_pref("update.interval", 86400000); | |
user_pref("update.severity", 2); | |
// Bookmarks | |
user_pref("browser.bookmarks.autoExportHTML", true); | |
user_pref("browser.bookmarks.file", "/etc/firefox/profile/bookmarks.html"); | |
// LockDown | |
//lockPref("config.lockdown.disable_extensions", true); | |
lockPref("config.lockdown.disable_themes", true); | |
// International | |
user_pref("intl.charset.default", "ISO-8859-15"); | |
lockPref("general.useragent.locale", "pt-PT"); | |
lockPref("intl.locale.matchOS", false); | |
user_pref("spellchecker.dictionary", "pt"); | |
// identify default locale to use if no /usr/lib/firefox-addons/searchplugins/LOCALE | |
// exists for the current used LOCALE | |
pref("distribution.searchplugins.defaultLocale", "en-US"); | |
// Development Tools | |
lockPref("devtools.inspector.enabled", false); | |
lockPref("devtools.ruleview.enabled", false); | |
lockPref("devtools.scratchpad.enabled", false); | |
lockPref("devtools.styleinspector.enabled", false); | |
// SPCY | |
pref("network.http.spdy.enabled", true); | |
// Cache size | |
lockPref("browser.cache.offline.capacity", 256000); | |
lockPref("browser.cache.disk.capacity", 400000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you