add user.js file

This commit is contained in:
Gerome Matilla 2020-08-15 15:41:05 +08:00
parent 2eb0ba162f
commit f9a2295903
2 changed files with 9 additions and 8 deletions

View File

@ -21,14 +21,9 @@ download_bf() {
FF_THEME="/tmp/blurredfox-master/"
cp -r "${FF_THEME}"* "${CHROME_DIRECTORY}"
cat > "${CHROME_DIRECTORY}/../user.js" <<'EOL'
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
user_pref("layers.acceleration.force-enabled", true);
user_pref("gfx.webrender.all", true);
user_pref("gfx.webrender.enabled", true);
user_pref("svg.context-properties.content.enabled", true);
user_pref("layout.css.backdrop-filter.enabled", true);
EOL
# Move user.js to the main profile directory
mv "${CHROME_DIRECTORY}/user.js" "../"
if [[ $? -eq 0 ]];
then
rm -rf "/tmp/blurredfox-master"

6
user.js Normal file
View File

@ -0,0 +1,6 @@
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
user_pref("layers.acceleration.force-enabled", true);
user_pref("gfx.webrender.all", true);
user_pref("gfx.webrender.enabled", true);
user_pref("svg.context-properties.content.enabled", true);
user_pref("layout.css.backdrop-filter.enabled", true);