From 8bf2c08e79acc7e510f6b272e0406a050d34584e Mon Sep 17 00:00:00 2001 From: partisan Date: Wed, 11 Dec 2024 22:11:31 +0100 Subject: [PATCH] update policies (uBlock & download button) --- .../search-engine-qgato.patch | 54 +++++++++++++++---- pre-compile-patches/ui-cleanup.patch | 3 +- 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/post-compile-patches/search-engine-qgato.patch b/post-compile-patches/search-engine-qgato.patch index 54c345a..f09af22 100644 --- a/post-compile-patches/search-engine-qgato.patch +++ b/post-compile-patches/search-engine-qgato.patch @@ -4,10 +4,49 @@ o: /distribution/policies.json +{ + "__COMMENT__ More Information": "https://github.com/mozilla/policy-templates/blob/master/README.md", + "policies": { ++ "AppUpdateURL": "https://localhost", + "DisableAppUpdate": true, ++ "OverrideFirstRunPage": "", ++ "OverridePostUpdatePage": "", ++ "DisableSystemAddonUpdate": true, ++ "DisableProfileImport": false, ++ "DisableFirefoxStudies": true, + "DisableTelemetry": true, ++ "DisableFeedbackCommands": true, ++ "DisablePocket": true, ++ "DisableSetDesktopBackground": false, ++ "DisableDeveloperTools": false, ++ "NoDefaultBookmarks": true, ++ "WebsiteFilter": { ++ "Block": [ ++ "https://localhost/*" ++ ], ++ "Exceptions": [ ++ "https://localhost/*" ++ ] ++ }, ++ "Extensions": { ++ "Install": [ ++ "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi" ++ ], ++ "DefaultState": "hidden", ++ "Uninstall": [ ++ "google@search.mozilla.org", ++ "bing@search.mozilla.org", ++ "amazondotcom@search.mozilla.org", ++ "ebay@search.mozilla.org", ++ "twitter@search.mozilla.org" ++ ] ++ }, + "SearchEngines": { -+ "Default": "QGato", ++ "PreventInstalls": false, ++ "Remove": [ ++ "Google", ++ "Bing", ++ "Amazon.com", ++ "eBay", ++ "Twitter" ++ ], + "Add": [ + { + "Name": "QGato", @@ -17,14 +56,11 @@ o: /distribution/policies.json + "SuggestURLTemplate": "https://qgato.xyz/suggestions?q={searchTerms}", + "IconURL": "https://qgato.xyz/static/images/icon.png" + } -+ ], -+ "Remove": [ -+ "Google", -+ "Bing", -+ "Amazon.com", -+ "eBay", -+ "Twitter" + ] ++ }, ++ "SupportMenu": { ++ "Title": "Spitfire Issue Tracker", ++ "URL": "https://weforge.xyz/Spitfire/Browser/issues" + } + } -+} ++} \ No newline at end of file diff --git a/pre-compile-patches/ui-cleanup.patch b/pre-compile-patches/ui-cleanup.patch index 889997f..c745b9c 100644 --- a/pre-compile-patches/ui-cleanup.patch +++ b/pre-compile-patches/ui-cleanup.patch @@ -4,4 +4,5 @@ o:/browser/app/profile/firefox.js +pref("identity.fxaccounts.enabled", false); // Disable Firefox Account integration (removes "Sign in to Sync" and "Sync and save data") +pref("browser.tabs.tabmanager.enabled", false); // Disable "List all tabs" button -+pref("browser.tabs.firefox-view", false); // Remove "View recent browsing" (Firefox View button) \ No newline at end of file ++pref("browser.tabs.firefox-view", false); // Remove "View recent browsing" (Firefox View button) ++ pref("browser.download.autohideButton", false); // Show download button always \ No newline at end of file