i solved the problem (it seems that even the script works, PM started too fast, prefs.js is overridden from default settings (or copied but browser is already started with compiled defaults) and only xulstore.json was working (after moving palemoon/browser/defaults/profile/ to palemoon/defaults/profile/ )). I stopped playing with autoconfig.js and make general solution (why to make script, that will be executed from browser and may not work with new version?). there is much better and fastest way.
I created launcher and replaced symlink in /usr/bin/palemoon:
Code: Select all
#!/bin/sh
if [ ! -d /home/$USER/.moonchild\ productions/ ]; then
mkdir -p /home/$USER/.moonchild\ productions/pale\ moon/profile
cat <<EOF>> /home/$USER/.moonchild\ productions/pale\ moon/profile/prefs.js
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
*/
user_pref("browser.backspace_action", 0);
user_pref("browser.cache.disk.enable", false);
user_pref("browser.cache.offline.enable", false);
user_pref("browser.newtab.choice", 0);
user_pref("browser.newtab.url", "about:blank");
user_pref("browser.search.defaultenginename", "Google");
user_pref("browser.search.openintab", true);
user_pref("browser.startup.homepage", "about:home");
user_pref("browser.tabs.onTop", true);
user_pref("browser.tabs.remote.autostart", true);
user_pref("browser.tabs.remote.force-enable", true);
user_pref("dom.disable_beforeunload", true);
user_pref("dom.ipc.plugins.flash.disable-protected-mode", true);
user_pref("dom.indexedDB.logging.details", false);
user_pref("dom.indexedDB.logging.enabled", false);
user_pref("media.gmp.decoder.enabled", true);
user_pref("media.libavcodec.allow-obsolete", true);
user_pref("privacy.clearOnShutdown.connectivityData", true);
user_pref("privacy.clearOnShutdown.cookies", false);
user_pref("privacy.clearOnShutdown.downloads", false);
user_pref("privacy.clearOnShutdown.formdata", false);
user_pref("privacy.clearOnShutdown.history", false);
user_pref("privacy.clearOnShutdown.offlineApps", true);
user_pref("privacy.clearOnShutdown.sessions", false);
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
EOF
cat <<EOF>> /home/$USER/.moonchild\ productions/pale\ moon/profile/xulstore.json
{"chrome://browser/content/browser.xul":{"main-window":{"sizemode":"maximized"},"PersonalToolbar":{"collapsed":"true","currentset":"personal-bookmarks"},"toolbar-menubar":{"autohide":"true","currentset":"menubar-items"},"navigator-toolbox":{"iconsize":"small"},"nav-bar":{"iconsize":"small","currentset":"unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,bookmarks-menu-button,history-menu-button,downloads-button,window-controls,webrtc-status-button"},"TabsToolbar":{"currentset":"appmenu-toolbar-button,tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton,tabs-padlock-tbitem"},"addon-bar":{"currentset":"addonbar-closebutton,status4evar-status-widget,status4evar-progress-widget,status-bar","collapsed":"false"},"sidebar-title":{"value":""}}}
EOF
cat <<EOF>> /home/$USER/.moonchild\ productions/pale\ moon/profiles.ini
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=profile
Default=1
EOF
fi
/usr/lib/palemoon/palemoon &
not forget to make launcher executable "chmod +x ..."
this launcher will work with every firefox based browser after correcting paths
with my launcher browser work in ram, because my hdd is not hdd, but compact flash and i don't won't continuously writing...
user_pref("media.gmp.decoder.enabled", true);
user_pref("media.libavcodec.allow-obsolete", true);
this will turn on all check boxes in
https://www.youtube.com/html5