mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-03 03:10:07 -05:00
update website appearance patch
This commit is contained in:
parent
48f4fd1aac
commit
d824bb2ac3
2 changed files with 8 additions and 11 deletions
|
@ -15,7 +15,6 @@ patches/sed-patches/remove-internal-plugin-certs.patch
|
|||
patches/sed-patches/stop-undesired-requests2.patch
|
||||
patches/ui-patches/handlers.patch
|
||||
patches/ui-patches/hide-default-browser.patch
|
||||
patches/ui-patches/hide-website-appearance.patch
|
||||
patches/ui-patches/lw-logo-devtools.patch
|
||||
patches/ui-patches/pref-naming.patch
|
||||
patches/ui-patches/privacy-preferences.patch
|
||||
|
@ -25,4 +24,5 @@ patches/ui-patches/remove-cfrprefs.patch
|
|||
patches/ui-patches/remove-organization-policy-banner.patch
|
||||
patches/ui-patches/remove-snippets-from-home.patch
|
||||
patches/ui-patches/sanitizing-description.patch
|
||||
patches/ui-patches/website-appearance-ui-rfp.patch
|
||||
patches/urlbarprovider-interventions.patch
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- a/browser/components/preferences/main.js
|
||||
+++ b/browser/components/preferences/main.js
|
||||
@@ -806,6 +806,32 @@ var gMainPane = {
|
||||
@@ -806,6 +806,29 @@ var gMainPane = {
|
||||
() => this.readBrowserContainersCheckbox()
|
||||
);
|
||||
|
||||
|
@ -10,24 +10,21 @@
|
|||
+ const infoBox = document.createElement("div");
|
||||
+ infoBox.classList.add("info-box-container");
|
||||
+ infoBox.style.display = "flex";
|
||||
+ infoBox.style.marginBottom = "10px";
|
||||
+ const icon = document.createElement("div");
|
||||
+ icon.classList.add("info-icon-container");
|
||||
+ infoBox.appendChild(icon);
|
||||
+ infoBox.style.alignItems = "center";
|
||||
+ infoBox.style.marginTop = "10px";
|
||||
+ infoBox.style.marginBottom = "5px";
|
||||
+ const text = document.createElement("div");
|
||||
+ text.innerText = "Since RPF is enabled, the website appearance chooser is disabled.";
|
||||
+ text.innerText = "This feature is disabled because ResistFingerprinting is enabled. This means LibreWolf will force web content to display in a light theme.";
|
||||
+ infoBox.appendChild(text);
|
||||
+ const learnMore = document.createElement("a");
|
||||
+ learnMore.classList.add("text-link");
|
||||
+ learnMore.style.marginLeft = "5px";
|
||||
+ learnMore.style.flexShrink = 0;
|
||||
+ learnMore.setAttribute("is", "learn-more");
|
||||
+ learnMore.href = "https://librewolf.net/docs/faq/#why-is-librewolf-forcing-light-theme";
|
||||
+ learnMore.innerText = "Learn more";
|
||||
+ infoBox.appendChild(learnMore);
|
||||
+ const manageThemes = document.getElementById("webAppearanceSettings").lastElementChild;
|
||||
+ manageThemes.remove();
|
||||
+ document.getElementById("webAppearanceSettings").append(infoBox);
|
||||
+ document.getElementById("webAppearanceSettings").appendChild(manageThemes);
|
||||
+ document.getElementById("webAppearanceSettings").insertBefore(infoBox, document.getElementById("webAppearanceSettings").children[2]);
|
||||
+ }
|
||||
+
|
||||
this.setInitialized();
|
Loading…
Reference in a new issue