From 0be654bbe9511605e0dbbbf18f0918769b118a2b Mon Sep 17 00:00:00 2001 From: daijro Date: Tue, 13 Aug 2024 21:19:26 -0500 Subject: [PATCH] Auto pin extensions --- patches/auto-pin-extensions.patch | 29 +++++++++++++++++++++++++++++ settings/chrome.css | 1 + 2 files changed, 30 insertions(+) create mode 100644 patches/auto-pin-extensions.patch diff --git a/patches/auto-pin-extensions.patch b/patches/auto-pin-extensions.patch new file mode 100644 index 0000000..4fc7256 --- /dev/null +++ b/patches/auto-pin-extensions.patch @@ -0,0 +1,29 @@ +cd camoufox-129.0-beta && git diff +diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js +index d071b231aa..1733b17fd1 100644 +--- a/browser/base/content/browser-addons.js ++++ b/browser/base/content/browser-addons.js +@@ -1873,6 +1873,11 @@ var gUnifiedExtensions = { + // will be overflowed directly. In this case, we do not want to change the + // class name since it is going to be changed by `onWidgetOverflow()` + // below. ++ if (aArea !== CustomizableUI.AREA_NAVBAR) { ++ aArea = CustomizableUI.AREA_NAVBAR; ++ this.pinToToolbar(aWidgetId, true); ++ } ++ + if (CustomizableUI.getWidget(aWidgetId)?.forWindow(window)?.overflowed) { + return; + } +diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml +index 1fb595272a..389d436e90 100644 +--- a/browser/base/content/main-popupset.inc.xhtml ++++ b/browser/base/content/main-popupset.inc.xhtml +@@ -286,7 +286,6 @@ + type="checkbox" + contexttype="toolbaritem" + class="customize-context-pinToToolbar"/> +- +