Skip to content

Commit

Permalink
bruni, that can just be enabled again.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichayesferen committed Feb 5, 2025
1 parent 149e2b2 commit 6e5e882
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
22 changes: 22 additions & 0 deletions Profile Folder/chrome/JS/Geckium_forkAdj.uc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@
// @include main
// ==/UserScript==

// Temporary Firefox adjustments
class gkFirefoxTempAdj {
static disableVertical() {
if (gkPrefUtils.tryGet("sidebar.verticalTabs").bool != false) {
gkPrefUtils.set("sidebar.verticalTabs").bool(false);
UC_API.Notifications.show({
label : "you shall not pass",
type : "geckium-notification",
priority: "critical"
})
}
}
}
window.addEventListener("load", gkFirefoxTempAdj.disableVertical);
const firefoxObserver = {
observe: function (subject, topic, data) {
if (topic == "nsPref:changed")
gkFirefoxTempAdj.disableVertical();
},
};
Services.prefs.addObserver("browser.theme.enableWaterfoxCustomizations", firefoxObserver, false);

// Firefox forks with NO hope of ever being Geckium compatible
class gkImpossibleForks {
/**
Expand Down
5 changes: 1 addition & 4 deletions Profile Folder/chrome/JS/Geckium_updater.uc.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ function updateSettings(iteration) {
gkPrefUtils.set("Geckium.newTabHome.oldAppsList").string(gkPrefUtils.tryGet("Geckium.newTabHome.appsList").string);
gkNTP.restoreDefaultApps();
}
if (iteration < 7) {
gkPrefUtils.set("sidebar.verticalTabs").bool(false);
}
// Put future settings changes down here as < 7, and so on.
// Put future settings changes down here as < 6, and so on.

if (iteration < configIteration)
gkPrefUtils.set("Geckium.version.iteration").int(configIteration);
Expand Down

0 comments on commit 6e5e882

Please sign in to comment.