Created
October 27, 2022 09:13
-
-
Save HeIIow2/a35e10de8c256e7df97ab3dd138bf893 to your computer and use it in GitHub Desktop.
set startpage
This file contains hidden or 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
# in about:support the folder is the Profile Directory | |
new_tab_url="https://libre.fm/user/Hellow2/stats" | |
#profile_directory = "/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/c14e6a589174fff2a88482d39879142b7599317172128a60335e37b3ee05cdee/files/lib/firefox/" | |
js_apt="/usr/lib/firefox/defaults/pref/autoconfig.js" | |
js_snap="/snap/firefox/1943/usr/lib/firefox/defaults/pref/autoconfig.js" | |
js_flatpak="/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/c14e6a589174fff2a88482d39879142b7599317172128a60335e37b3ee05cdee/files/lib/firefox/defaults/pref/autoconfig.js" | |
cfg_apt="/usr/lib/firefox/autoconfig.cfg" | |
cfg_snap="/snap/firefox/1943/usr/lib/firefox/autoconfig.cfg" | |
cfg_flatpak="/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/c14e6a589174fff2a88482d39879142b7599317172128a60335e37b3ee05cdee/files/lib/firefox/autoconfig.cfg" | |
js=$js_flatpak | |
cfg=$cfg_flatpak | |
touch $js | |
cat >$js <<EOL | |
// | |
pref("general.config.filename", "autoconfig.cfg"); | |
pref("general.config.obscure_value", 0); | |
pref("general.config.sandbox_enabled", false); | |
EOL | |
echo $cfg | |
touch $cfg | |
cat >$cfg <<EOL | |
// | |
var {classes:Cc,interfaces:Ci,utils:Cu} = Components; | |
/* set new tab page */ | |
try { | |
Cu.import("resource:///modules/AboutNewTab.jsm"); | |
var newTabURL = "${new_tab_url}"; | |
AboutNewTab.newTabURL = newTabURL; | |
} catch(e){Cu.reportError(e);} // report errors in the Browser Console | |
EOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment