diff --git a/assets/patches.txt b/assets/patches.txt index 09c9636..11ac66b 100644 --- a/assets/patches.txt +++ b/assets/patches.txt @@ -20,7 +20,6 @@ patches/ui-patches/hide-default-browser.patch patches/ui-patches/lw-logo-devtools.patch patches/ui-patches/pref-naming.patch patches/ui-patches/privacy-preferences.patch -patches/ui-patches/remap-links.patch patches/ui-patches/remove-branding-urlbar.patch patches/ui-patches/remove-cfrprefs.patch patches/ui-patches/remove-organization-policy-banner.patch diff --git a/patches/ui-patches/remap-links.patch b/patches/ui-patches/remap-links.patch deleted file mode 100644 index 4edde63..0000000 --- a/patches/ui-patches/remap-links.patch +++ /dev/null @@ -1,163 +0,0 @@ -diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js -index d097209..0232988 100644 ---- a/browser/components/preferences/main.js -+++ b/browser/components/preferences/main.js -@@ -308,12 +308,19 @@ var gMainPane = { - "performanceSettingsLearnMore" - ); - let performanceSettingsUrl = -- Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "performance"; -+ "https://support.mozilla.org/en-US/kb/performance-settings"; - performanceSettingsLink.setAttribute("href", performanceSettingsUrl); - - this.updateDefaultPerformanceSettingsPref(); - -+ let sessionRestoreLink = document.getElementById( -+ "sessionRestoreLearnMore" -+ ); -+ let sessionRestoreUrl = -+ Services.urlFormatter.formatURLPref("app.support.baseURL") + -+ "why-is-session-restore-not-working"; -+ sessionRestoreLink.setAttribute("href", sessionRestoreUrl); -+ - let defaultPerformancePref = Preferences.get( - "browser.preferences.defaultPerformanceSettings.enabled" - ); -@@ -326,8 +333,7 @@ var gMainPane = { - "connectionSettingsLearnMore" - ); - let connectionSettingsUrl = -- Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "prefs-connection-settings"; -+ "https://support.mozilla.org/en-US/kb/connection-settings-firefox" - connectionSettingsLink.setAttribute("href", connectionSettingsUrl); - this.updateProxySettingsUI(); - initializeProxyUI(gMainPane); -@@ -357,8 +363,7 @@ var gMainPane = { - document.getElementById("pictureInPictureBox").hidden = false; - - let pipLearnMoreUrl = -- Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "picture-in-picture"; -+ "https://support.mozilla.org/en-US/kb/turn-picture-picture-mode"; - let link = document.getElementById("pictureInPictureLearnMore"); - link.setAttribute("href", pipLearnMoreUrl); - } -@@ -512,8 +517,7 @@ var gMainPane = { - ) { - document.getElementById("mediaControlBox").hidden = false; - let mediaControlLearnMoreUrl = -- Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "media-keyboard-control"; -+ "https://support.mozilla.org/en-US/kb/control-audio-or-video-playback-your-keyboard"; - let link = document.getElementById("mediaControlLearnMore"); - link.setAttribute("href", mediaControlLearnMoreUrl); - } -@@ -546,7 +550,7 @@ var gMainPane = { - - let drmInfoURL = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "drm-content"; -+ "how-do-i-enable-drm"; - document - .getElementById("playDRMContentLink") - .setAttribute("href", drmInfoURL); -@@ -874,7 +878,8 @@ var gMainPane = { - - const link = document.getElementById("browserContainersLearnMore"); - link.href = -- Services.urlFormatter.formatURLPref("app.support.baseURL") + "containers"; -+ Services.urlFormatter.formatURLPref("app.support.baseURL") + -+ "why-isnt-first-party-isolate-enabled-by-default"; - - document.getElementById("browserContainersbox").hidden = false; - this.readBrowserContainersCheckbox(); -diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js -index 4a629a8..339255d 100644 ---- a/browser/components/preferences/privacy.js -+++ b/browser/components/preferences/privacy.js -@@ -277,7 +277,7 @@ function setUpContentBlockingWarnings() { - let links = document.querySelectorAll(".contentBlockWarningLink"); - let contentBlockingWarningUrl = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "turn-off-etp-desktop"; -+ "what-is-enhanced-tracking-protection"; - for (let link of links) { - link.setAttribute("href", contentBlockingWarningUrl); - } -@@ -484,7 +484,7 @@ var gPrivacyPane = { - let link = document.getElementById("httpsOnlyLearnMore"); - let httpsOnlyURL = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "https-only-prefs"; -+ "does-librewolf-use-https-only-mode"; - link.setAttribute("href", httpsOnlyURL); - - // Set radio-value based on the pref value -@@ -649,7 +649,7 @@ var gPrivacyPane = { - ); - const breachAlertsLearnMoreUrl = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "lockwise-alerts"; -+ "why-is-the-built-in-password-manager-disabled"; - breachAlertsLearnMoreLink.setAttribute("href", breachAlertsLearnMoreUrl); - - this._initSafeBrowsing(); -@@ -755,13 +755,14 @@ var gPrivacyPane = { - ); - let url = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "storage-permissions"; -+ "how-do-i-stay-logged-into-specific-websites"; - document.getElementById("siteDataLearnMoreLink").setAttribute("href", url); - - this.initCookieBannerHandling(); - - let notificationInfoURL = -- Services.urlFormatter.formatURLPref("app.support.baseURL") + "push"; -+ Services.urlFormatter.formatURLPref("app.support.baseURL") + -+ "how-do-i-enable-push-notifications"; - document - .getElementById("notificationPermissionsLearnMore") - .setAttribute("href", notificationInfoURL); -@@ -930,7 +931,7 @@ var gPrivacyPane = { - let link = document.getElementById("contentBlockingLearnMore"); - let contentBlockingUrl = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "enhanced-tracking-protection"; -+ "what-is-mozilla-tracking-protection"; - link.setAttribute("href", contentBlockingUrl); - - // Toggles the text "Cross-site and social media trackers" based on the -@@ -2402,7 +2403,7 @@ var gPrivacyPane = { - let learnMoreLink = document.getElementById("primaryPasswordLearnMoreLink"); - let learnMoreURL = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "primary-password-stored-logins"; -+ "why-is-the-built-in-password-manager-disabled"; - learnMoreLink.setAttribute("href", learnMoreURL); - }, - -@@ -2637,7 +2638,7 @@ var gPrivacyPane = { - let learnMoreLink = document.getElementById("enableSafeBrowsingLearnMore"); - let phishingUrl = - Services.urlFormatter.formatURLPref("app.support.baseURL") + -- "phishing-malware"; -+ "why-do-you-disable-google-safe-browsing"; - learnMoreLink.setAttribute("href", phishingUrl); - - enableSafeBrowsing.addEventListener("command", function() { -diff --git a/toolkit/mozapps/extensions/content/aboutaddons.js b/toolkit/mozapps/extensions/content/aboutaddons.js -index be8a4f5..dee2e56 100644 ---- a/toolkit/mozapps/extensions/content/aboutaddons.js -+++ b/toolkit/mozapps/extensions/content/aboutaddons.js -@@ -1551,7 +1551,7 @@ class SidebarFooter extends HTMLElement { - icon: "chrome://global/skin/icons/help.svg", - createLinkElement: () => { - let link = document.createElement("a", { is: "support-link" }); -- link.setAttribute("support-page", "addons-help"); -+ link.setAttribute("support-page", "do-you-recommend-using-any-extensions"); - link.id = "help-button"; - return link; - },