只有系统管理员可以覆盖 Mozilla Firefox Web 浏览器的优化值。这些优化值存在于 /usr/lib/firefox/defaults/pref/all-multi-user-desktop.js 文件中。
以下代码显示了 all-multi-user-desktop.js 文件中的值。
// Disable "safe browsing" feature that hogs CPU, HDD, etc. pref("browser.safebrowsing.enabled", false); pref("browser.safebrowsing.malware.enabled", false); // Limit the "location-bar suggestions" pref("browser.urlbar.maxRichResults", 3); // Disable offline/disk caching of web pages pref("browser.cache.offline.enable", false); pref("browser.cache.disk.enable", false); // Change the default cache: pref("browser.cache.memory.enable",true); pref("browser.cache.memory.capacity", 1024);
要覆盖 all-multi-user-desktop.js 文件中存在的优化值,请在 /usr/lib/firefox/defaults/pref/ 目录中创建一个新的文件并赋予其新值。如果按字母顺序排序,文件名应排在 all-multi-user-desktop.js 文件之前。例如,您可以将文件命名为 all-admin.js。