From 3bfa27199fa42210f6fa7b23db90e8494cdd53da Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 4 Jan 2023 22:38:55 +0900 Subject: [PATCH] Add: Hidden - Private indicator --- css/leptonChrome.css | 6 ++++++ src/hidden/_index.scss | 12 ++++++++++++ user.js | 1 + 3 files changed, 19 insertions(+) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 0f5e341..03ab3ef 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -9667,6 +9667,12 @@ } } } +@supports -moz-bool-pref("userChrome.hidden.private_indicator") { + .private-browsing-indicator, + #private-browsing-indicator-with-label { + display: none; + } +} @supports -moz-bool-pref("userChrome.hidden.titlebar_container") { .titlebar-buttonbox-container { display: none !important; diff --git a/src/hidden/_index.scss b/src/hidden/_index.scss index 3047a1c..a21600a 100644 --- a/src/hidden/_index.scss +++ b/src/hidden/_index.scss @@ -27,6 +27,18 @@ } } +@include Option("userChrome.hidden.private_indicator") { + // :root:not([privatebrowsingmode=temporary]) .private-browsing-indicator, + // :root[privatebrowsingnewindicator] .private-browsing-indicator, + // :root:not([privatebrowsingnewindicator]) #private-browsing-indicator-with-label, + // :root:not([privatebrowsingmode=temporary]) #private-browsing-indicator-with-label { + // } + .private-browsing-indicator, + #private-browsing-indicator-with-label { + display: none; + } +} + @include Option("userChrome.hidden.titlebar_container") { .titlebar-buttonbox-container { display: none !important; diff --git a/user.js b/user.js index 7179c62..a466c73 100644 --- a/user.js +++ b/user.js @@ -94,6 +94,7 @@ user_pref("userChrome.rounding.square_tab", false); // user_pref("userChrome.hidden.tab_icon.always", true); // user_pref("userChrome.hidden.tabbar", true); // user_pref("userChrome.hidden.navbar", true); +// user_pref("userChrome.hidden.private_indicator", true); // user_pref("userChrome.hidden.titlebar_container", true); // user_pref("userChrome.hidden.sidebar_header", true); // user_pref("userChrome.hidden.sidebar_header.vertical_tab_only", true);