diff options
author | Mark H Weaver <mhw@netris.org> | 2020-09-06 02:49:48 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2020-09-06 13:18:24 -0400 |
commit | 700ee68e7311a4640232018bdbf77fe96a97b8e8 (patch) | |
tree | f88e0b03d384a7856b60f53e4c312b13368e90d4 | |
parent | e4de546dc21666487ea391b8115442b665ffcc4a (diff) |
Hide protections dashboard menu item and urlbar icon.
-rw-r--r-- | data/patches/hide-protections-dashboard.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/data/patches/hide-protections-dashboard.patch b/data/patches/hide-protections-dashboard.patch new file mode 100644 index 0000000..9fd6d4c --- /dev/null +++ b/data/patches/hide-protections-dashboard.patch @@ -0,0 +1,31 @@ +--- a/browser/components/customizableui/content/panelUI.inc.xhtml ++++ b/browser/components/customizableui/content/panelUI.inc.xhtml +@@ -242,7 +242,7 @@ + oncommand="gSync.toggleAccountPanel('PanelUI-fxa', this, event)"/> + </toolbaritem> + <toolbarseparator class="sync-ui-item"/> +- <toolbaritem> ++ <toolbaritem hidden="true"> + <toolbarbutton id="appMenu-protection-report-button" + class="subviewbutton subviewbutton-iconic" + oncommand="gProtectionsHandler.openProtections(); gProtectionsHandler.recordClick('open_full_report', null, 'app_menu');"> +@@ -253,7 +253,7 @@ + </label> + </toolbarbutton> + </toolbaritem> +- <toolbarseparator id="appMenu-tp-separator"/> ++ <toolbarseparator id="appMenu-tp-separator" hidden="true"/> + <toolbarbutton id="appMenu-new-window-button" + class="subviewbutton subviewbutton-iconic" + label="&newNavigatorCmd.label;" +--- a/browser/base/content/browser-siteProtections.js ++++ b/browser/base/content/browser-siteProtections.js +@@ -1634,7 +1634,7 @@ + this._trackingProtectionIconContainer.hidden = true; + return; + } +- this._trackingProtectionIconContainer.hidden = false; ++ this._trackingProtectionIconContainer.hidden = true; + + // Check whether the user has added an exception for this site. + let hasException = ContentBlockingAllowList.includes( |