Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 083c152

Browse files
committed
💄 Change position of uBO in UI
1 parent 00deb30 commit 083c152

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

configs/common/mozconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Browser branding
22
ac_add_options --enable-update-channel=release
3+
ac_add_options --with-ccache=sccache
34

45
# ac_add_options --with-branding=branding/unofficial
56
ac_add_options --with-app-name=focus-browser

melon

src/browser/components/customizableui/CustomizableUI-jsm.patch

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
diff --git a/browser/components/customizableui/CustomizableUI.jsm b/browser/components/customizableui/CustomizableUI.jsm
2-
index a52c35c3810ca8ccbde97d932d34652d9ec728c1..9ac73b461f8951609cd623acbb49c012749ef28e 100644
2+
index a52c35c3810ca8ccbde97d932d34652d9ec728c1..6ee11a2cadcf254c608e066b3b97978b284f03c7 100644
33
--- a/browser/components/customizableui/CustomizableUI.jsm
44
+++ b/browser/components/customizableui/CustomizableUI.jsm
5-
@@ -238,16 +238,18 @@ var CustomizableUIInternal = {
5+
@@ -13,6 +13,10 @@ const { AppConstants } = ChromeUtils.import(
6+
"resource://gre/modules/AppConstants.jsm"
7+
);
8+
9+
+const { ExtensionCommon } = ChromeUtils.import(
10+
+ "resource://gre/modules/ExtensionCommon.jsm"
11+
+);
12+
+
13+
XPCOMUtils.defineLazyModuleGetters(this, {
14+
AddonManager: "resource://gre/modules/AddonManager.jsm",
15+
AddonManagerPrivate: "resource://gre/modules/AddonManager.jsm",
16+
@@ -38,7 +42,10 @@ XPCOMUtils.defineLazyPreferenceGetter(
17+
false
18+
);
19+
20+
+const { makeWidgetId } = ExtensionCommon;
21+
+
22+
const kDefaultThemeID = "default-theme@mozilla.org";
23+
+const kUBlockOriginID = "uBlock0@raymondhill.net";
24+
25+
const kSpecialWidgetPfx = "customizableui-special-";
26+
27+
@@ -238,16 +245,19 @@ var CustomizableUIInternal = {
628
);
729

830
let navbarPlacements = [
@@ -15,6 +37,7 @@ index a52c35c3810ca8ccbde97d932d34652d9ec728c1..9ac73b461f8951609cd623acbb49c012
1537
? null
1638
: "home-button",
1739
"spring",
40+
+ `${makeWidgetId(kUBlockOriginID)}-browser-action`,
1841
"urlbar-container",
1942
"spring",
2043
- "save-to-pocket-button",

0 commit comments

Comments
 (0)