From daa2208bdf770c84a002ed61f2be7e6ac656b479 Mon Sep 17 00:00:00 2001 From: angelbruni Date: Wed, 5 Feb 2025 12:35:38 +0000 Subject: [PATCH] Remove forced spacer (https://searchfox.org/mozilla-central/source/browser/components/customizableui/CustomizableUI.sys.mjs#317) at startup --- Profile Folder/chrome/JS/Geckium_toolbar.uc.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Profile Folder/chrome/JS/Geckium_toolbar.uc.js diff --git a/Profile Folder/chrome/JS/Geckium_toolbar.uc.js b/Profile Folder/chrome/JS/Geckium_toolbar.uc.js new file mode 100644 index 00000000..2eb9a143 --- /dev/null +++ b/Profile Folder/chrome/JS/Geckium_toolbar.uc.js @@ -0,0 +1,14 @@ +// ==UserScript== +// @name Geckium - Toolbar Adjustments +// @author AngelBruni +// @loadorder 4 +// ==/UserScript== + +UC_API.Runtime.startupFinished().then(() => { + // Maybe temporary fix to the forced vertical spacer...?? Why did you do this Mozilla... + let forcedSpacer = document.querySelector(`#vertical-spacer[removable="false"]`); + if (forcedSpacer) { + forcedSpacer.setAttribute("removable", true); + CustomizableUI.removeWidgetFromArea("vertical-spacer"); + } +}); \ No newline at end of file