From 37e810105c9f0292e47c995307af033214859b9d Mon Sep 17 00:00:00 2001 From: gjpin <3874515+gjpin@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:24:46 +0000 Subject: [PATCH] update firefox config + add vdpau env var for intel --- configs/firefox/user.js | 34 +++++++++++----------------------- setup.sh | 6 ++++++ 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/configs/firefox/user.js b/configs/firefox/user.js index 5001a31..24b7edc 100644 --- a/configs/firefox/user.js +++ b/configs/firefox/user.js @@ -10,7 +10,7 @@ /**************************************************************************** * Betterfox * * "Ad meliora" * - * version: 129 * + * version: 133 * * url: https://github.com/yokoffing/Betterfox * ****************************************************************************/ @@ -26,7 +26,7 @@ user_pref("gfx.canvas.accelerated.cache-size", 512); user_pref("gfx.content.skia-font-cache-size", 20); /** DISK CACHE ***/ -user_pref("browser.cache.jsbc_compression_level", 3); +user_pref("browser.cache.disk.enable", true); /** MEDIA CACHE ***/ user_pref("media.memory_cache_max_size", 65536); @@ -54,7 +54,6 @@ user_pref("network.predictor.enable-prefetch", false); /** EXPERIMENTAL ***/ user_pref("layout.css.grid-template-masonry-value.enabled", true); user_pref("dom.enable_web_task_scheduling", true); -user_pref("dom.security.sanitizer.enabled", true); /**************************************************************************** * SECTION: SECUREFOX * @@ -63,7 +62,6 @@ user_pref("dom.security.sanitizer.enabled", true); user_pref("browser.contentblocking.category", "strict"); user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com"); user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); -user_pref("network.cookie.sameSite.noneRequiresSecure", true); user_pref("browser.download.start_downloads_in_tmp_dir", true); user_pref("browser.helperApps.deleteTempFileOnExit", true); user_pref("browser.uitour.enabled", false); @@ -84,6 +82,7 @@ user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); user_pref("browser.sessionstore.interval", 60000); /** SHUTDOWN & SANITIZING ***/ +user_pref("browser.privatebrowsing.resetPBM.enabled", true); user_pref("privacy.history.custom", true); /** SEARCH / URL BAR ***/ @@ -93,8 +92,6 @@ user_pref("browser.search.separatePrivateDefault.ui.enabled", true); user_pref("browser.urlbar.update2.engineAliasRefresh", true); user_pref("browser.search.suggest.enabled", false); user_pref("browser.urlbar.quicksuggest.enabled", false); -user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false); -user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false); user_pref("browser.urlbar.groupLabels.enabled", false); user_pref("browser.formfill.enable", false); user_pref("security.insecure_connection_text.enabled", true); @@ -113,7 +110,9 @@ user_pref("editor.truncate_user_pastes", false); /** MIXED CONTENT + CROSS-SITE ***/ user_pref("security.mixed_content.block_display_content", true); user_pref("pdfjs.enableScripting", false); -user_pref("extensions.postDownloadThirdPartyPrompt", false); + +/** EXTENSIONS ***/ +user_pref("extensions.enabledScopes", 5); /** HEADERS / REFERERS ***/ user_pref("network.http.referer.XOriginTrimmingPolicy", 2); @@ -121,18 +120,14 @@ user_pref("network.http.referer.XOriginTrimmingPolicy", 2); /** CONTAINERS ***/ user_pref("privacy.userContext.ui.enabled", true); -/** WEBRTC ***/ -user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true); -user_pref("media.peerconnection.ice.default_address_only", true); - /** SAFE BROWSING ***/ user_pref("browser.safebrowsing.downloads.remote.enabled", false); /** MOZILLA ***/ user_pref("permissions.default.desktop-notification", 2); user_pref("permissions.default.geo", 2); +user_pref("browser.search.update", false); user_pref("permissions.manager.defaultsUrl", ""); -user_pref("webchannel.allowObject.urlWhitelist", ""); /** TELEMETRY ***/ user_pref("datareporting.policy.dataSubmissionEnabled", false); @@ -160,7 +155,6 @@ user_pref("app.normandy.api_url", ""); /** CRASH REPORTS ***/ user_pref("breakpad.reportURL", ""); user_pref("browser.tabs.crashReporting.sendReport", false); -user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); /** DETECTION ***/ user_pref("captivedetect.canonicalURL", ""); @@ -181,18 +175,12 @@ user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", user_pref("browser.preferences.moreFromMozilla", false); user_pref("browser.aboutConfig.showWarning", false); user_pref("browser.aboutwelcome.enabled", false); -user_pref("browser.tabs.tabmanager.enabled", false); user_pref("browser.profiles.enabled", true); /** THEME ADJUSTMENTS ***/ user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); user_pref("browser.compactmode.show", true); -user_pref("browser.display.focus_ring_on_anything", true); -user_pref("browser.display.focus_ring_style", 0); -user_pref("browser.display.focus_ring_width", 0); -user_pref("layout.css.prefers-color-scheme.content-override", 2); user_pref("browser.privateWindowSeparation.enabled", false); // WINDOWS -user_pref("browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled", true); /** COOKIE BANNER HANDLING ***/ user_pref("cookiebanners.service.mode", 1); @@ -201,7 +189,6 @@ user_pref("cookiebanners.service.mode.privateBrowsing", 1); /** FULLSCREEN NOTICE ***/ user_pref("full-screen-api.transition-duration.enter", "0 0"); user_pref("full-screen-api.transition-duration.leave", "0 0"); -user_pref("full-screen-api.warning.delay", -1); user_pref("full-screen-api.warning.timeout", 0); /** URL BAR ***/ @@ -211,6 +198,7 @@ user_pref("browser.urlbar.trending.featureGate", false); /** NEW TAB PAGE ***/ user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); +user_pref("browser.newtabpage.activity-stream.showWeather", false); user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); /** POCKET ***/ @@ -241,10 +229,10 @@ user_pref("general.smoothScroll.msdPhysics.enabled", true); user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600); user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650); user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25); -user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2.0); +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", "2"); user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); -user_pref("general.smoothScroll.currentVelocityWeighting", 1.0); -user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0); +user_pref("general.smoothScroll.currentVelocityWeighting", "1"); +user_pref("general.smoothScroll.stopDecelerationWeighting", "1"); user_pref("mousewheel.default.delta_multiplier_y", 300); // 250-400; adjust this number to your liking /**************************************************************************** diff --git a/setup.sh b/setup.sh index 5073dd3..8e01664 100755 --- a/setup.sh +++ b/setup.sh @@ -583,6 +583,12 @@ AMD_VULKAN_ICD=RADV # VDPAU VDPAU_DRIVER=radeonsi EOF +elif lspci | grep "VGA" | grep "Intel" > /dev/null; then +tee -a /etc/environment << EOF + +# VDPAU +VDPAU_DRIVER=va_gl +EOF fi # Install VA-API tools