From f4a33cc2e17a9d842380c48ef54b7aab0f6cdc55 Mon Sep 17 00:00:00 2001 From: Abe Jellinek <jellinek@berkeley.edu> Date: Fri, 8 Dec 2023 06:08:18 -0500 Subject: [PATCH] Fx115: Hide trailing separator in Add-ons menu --- app/scripts/fetch_xulrunner | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index 64f5455b8d..75fcb61d5c 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -258,6 +258,10 @@ function modify_omni { # # Modify Add-ons window # + + # Prevent display: block from overriding display: none on <hr>s + replace_line 'display: block !important;' 'display: block;' chrome/toolkit/content/global/elements/panel-list.css + file="chrome/toolkit/content/mozapps/extensions/aboutaddons.css" echo >> $file # Hide search bar, Themes and Plugins tabs, and sidebar footer @@ -266,7 +270,7 @@ function modify_omni { # Hide Details/Permissions tabs in addon details so we only show details echo 'addon-details > button-group { display: none !important; }' >> $file # Hide "Debug Addons" and "Manage Extension Shortcuts" - echo 'panel-item[action="debug-addons"], panel-item[action="reset-update-states"] + panel-item-separator, panel-item[action="manage-shortcuts"] { display: none }' >> $file + echo 'panel-item[action="debug-addons"], panel-item[action="reset-update-states"] + hr, panel-item[action="manage-shortcuts"] { display: none }' >> $file file="chrome/toolkit/content/mozapps/extensions/aboutaddons.js" # Hide unsigned-addon warning