2022-05-03 17:06:05 -05:00
--- a/browser/components/preferences/main.js
+++ b/browser/components/preferences/main.js
2022-05-03 17:49:57 -05:00
@@ -806,6 +806,29 @@ var gMainPane = {
2022-05-03 17:06:05 -05:00
() => this.readBrowserContainersCheckbox()
);
+ if (Services.prefs.getBoolPref("privacy.resistFingerprinting")) {
+ document.getElementById("web-appearance-chooser").style.opacity = 0.3;
+ document.getElementById("web-appearance-chooser").style.pointerEvents = "none";
+ const infoBox = document.createElement("div");
+ infoBox.classList.add("info-box-container");
+ infoBox.style.display = "flex";
2022-05-03 17:49:57 -05:00
+ infoBox.style.alignItems = "center";
+ infoBox.style.marginTop = "10px";
+ infoBox.style.marginBottom = "5px";
2022-05-03 17:06:05 -05:00
+ const text = document.createElement("div");
2022-05-03 17:49:57 -05:00
+ text.innerText = "This feature is disabled because ResistFingerprinting is enabled. This means LibreWolf will force web content to display in a light theme.";
2022-05-03 17:06:05 -05:00
+ infoBox.appendChild(text);
+ const learnMore = document.createElement("a");
+ learnMore.classList.add("text-link");
+ learnMore.style.marginLeft = "5px";
2022-05-03 17:49:57 -05:00
+ learnMore.style.flexShrink = 0;
2022-05-03 17:06:05 -05:00
+ 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);
2022-05-03 17:49:57 -05:00
+ document.getElementById("webAppearanceSettings").insertBefore(infoBox, document.getElementById("webAppearanceSettings").children[2]);
2022-05-03 17:06:05 -05:00
+ }
+
this.setInitialized();
},
2022-05-03 15:50:12 -05:00