if [ -f /etc/chromium-browser/default ]; then cat > /etc/chromium-browser/default << DELIM # Options to pass to chromium-browser CHROMIUM_FLAGS="--use-gl=egl --ignore-gpu-blocklist --enable-accelerated-video-decode --enable-zero-copy --enable-gpu-rasterization --enable-oop-rasterization --enable-pinch --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=SecurePaymentConfirmation" DELIM fi # overwrite stock firefox configuration if [ -d /etc/firefox/ ]; then ln -sf /etc/armbian/firefox.conf /etc/firefox/syspref.js; fi if [ -d /usr/lib/firefox-esr/ ]; then ln -sf /etc/armbian/firefox.conf /usr/lib/firefox-esr/mozilla.cfg echo 'pref("general.config.obscure_value", 0);' > /usr/lib/firefox-esr/defaults/pref/local-settings.js echo 'pref("general.config.filename", "mozilla.cfg");' >> /usr/lib/firefox-esr/defaults/pref/local-settings.js fi