Changes

Jump to: navigation, search

Firefox

4,549 bytes added, 13:26, 19 March 2012
no edit summary
policies.js should be located in %PROGRAMFILES%\Mozilla Firefox\defaults\pref\ and mozilla.cfg should be located in %PROGRAMFILES%\Mozilla Firefox\.
 
For Firefox 10 (maybe previous version, not tested), to stop the prompt to 'send my usage stats and data to some server somewhere in the world', add to mozilla.cfg
 
<source lang="javascript">
lockPref("toolkit.telemetry.enabled", false);
lockPref("toolkit.telemetry.rejected", true);
lockPref("toolkit.telemetry.prompted", 2);
</source>
 
To set the startup web page for all new and current users when they press the button 'Restore to Default':
 
- In notepad, create a new file with the contents:
 
<source lang="xml">
browser.startup.homepage=http://www.maths.cam.ac.uk
</source>
 
(change the URL to something more personal)
 
Save the file as browserconfig.properties
 
- Add this file to the archive file C:\program files (x86)\Mozilla Firefox\omni.ja by using 7-zip
 
<source lang="xml">
7z.exe a "C:\program files (x86)\Mozilla Firefox\omni.ja" [path to browserconfig.properties]
</source>
 
 
To turn on the bookmark toolbar and display the menu bar, either:
 
1. Copy the following into a file called C:\program files (x86)\Mozilla Firefox\defaults\profile\localstore.rdf (the dir \profile may not exist, if it doesn't, create it).
 
<source lang="xml">
<?xml version="1.0"?>
<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<RDF:Description RDF:about="chrome://browser/content/browser.xul#PersonalToolbar"
collapsed="false"
currentset="personal-bookmarks" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul">
<NC:persist RDF:resource="chrome://browser/content/browser.xul#main-window"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#PersonalToolbar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#navigator-toolbox"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#toolbar-menubar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#nav-bar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#TabsToolbar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#addon-bar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-box"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-title"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://global/content/customizeToolbar.xul#CustomizeToolbarWindow"
width="533"
height="470" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#TabsToolbar"
currentset="tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#sidebar-title"
value="" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#addon-bar"
currentset="addonbar-closebutton,spring,status-bar" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#nav-bar"
currentset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,bookmarks-menu-button-container,fullscreenflex,window-controls" />
<RDF:Description RDF:about="chrome://browser/content/preferences/preferences.xul#BrowserPreferences"
lastSelected="paneMain" />
<RDF:Description RDF:about="chrome://browser/content/preferences/preferences.xul">
<NC:persist RDF:resource="chrome://browser/content/preferences/preferences.xul#BrowserPreferences"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://browser/content/browser.xul#navigator-toolbox"
tabsontop="false" />
<RDF:Description RDF:about="chrome://global/content/customizeToolbar.xul">
<NC:persist RDF:resource="chrome://global/content/customizeToolbar.xul#CustomizeToolbarWindow"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://browser/content/browser.xul#sidebar-box"
sidebarcommand=""
width=""
src="" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#toolbar-menubar"
autohide="false"
currentset="menubar-items" />
</RDF:RDF>
</source>
 
OR
 
2. To manually create localstore.rdf, create a new firefox profile, customise the toolbars and quit firefox. Copy the file localstore.rdf is the profile just created to C:\program files (x86)\Mozilla Firefox\defaults\profile\localstore.rdf (the dir \profile may not exist, if it doesn't, create it).
 
==== Adding the settings to your package definition ====
15
edits

Navigation menu