Skip to content

Commit ac9291b

Browse files
committed
Update scripts to work with FF134+
1 parent 20c8141 commit ac9291b

14 files changed

+113
-133
lines changed

Installers/Multirow & other functions/functions/Focus-tab-on-hover.uc.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Switches to the tab you hovered over.
55
// @include main
6-
// @compatibility Firefox 73
6+
// @compatibility Firefox 136.0a1 (2025-01-10)
77
// @author Izheil
8+
// @version 11/01/2025 02:48 Fixed issue with gBrowser not being detected
89
// @version 06/12/2019 18:27 Fixed some issue with undefined elements
910
// @version 23/10/2019 02:49 Fixed delay function
1011
// @version 19/10/2019 23:37 Initial release
1112
// ==/UserScript==
1213

1314
// You can set the delay you want for the hover tab to take effect before switching to another tab.
1415
// Use miliseconds (only the number). 1 second = 1000 miliseconds.
15-
var delayBeforeSwitch = DELAYTIME;
16+
let delayBeforeSwitch = DELAYTIME;
1617

1718
function getParentByClass(el, className) {
1819
do {
@@ -25,10 +26,10 @@ function getParentByClass(el, className) {
2526
}
2627

2728
function hoverHandler(e){
28-
var EvEl = getParentByClass(e.target, "tabbrowser-tab");
29+
let EvEl = getParentByClass(e.target, "tabbrowser-tab");
2930
if (EvEl != undefined) {
3031
if (delayBeforeSwitch > 0) {
31-
var delay;
32+
let delay;
3233
delay = setTimeout(function(){
3334
EvEl.closest("tabs")._selectNewTab(EvEl)
3435
}, delayBeforeSwitch);
@@ -41,4 +42,6 @@ function hoverHandler(e){
4142
}
4243
}
4344

44-
gBrowser.tabContainer.addEventListener('mouseover', hoverHandler, false)
45+
window.addEventListener('load', () => {
46+
gBrowser.tabContainer.addEventListener('mouseover', hoverHandler, false);
47+
}, false);

Installers/Multirow & other functions/functions/MultiRowTab-scrollable-autohide.uc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Multi-row tabs draggability fix with autohiding scrollbar
55
// @include main
6-
// @compatibility Firefox 70 to Firefox 131.0a1 (2024-09-07)
6+
// @compatibility Firefox 70 to Firefox 136.0a1 (2025-01-10)
77
// @author Alice0775, Endor8, TroudhuK, Izheil, Merci-chao
8+
// @version 11/01/2025 01:59 Fixed gBrowser issue with Firefox 134+
89
// @version 13/11/2024 23:13 Fixed issue with Firefox 133+
910
// @version 07/09/2024 13:25 Compatibility fix for FF131a (Nightly)
1011
// @version 10/05/2023 18:42 Fix tab-growth variable from not applying
@@ -58,7 +59,7 @@
5859
// @version 30/11/2018 06:12 Now only the necesary rows appear, not static number of rows
5960
// @version 23/11/2018 00:41 Firefox 65
6061
// ==/UserScript==
61-
zzzz_MultiRowTabLite();
62+
window.addEventListener("load", () => zzzz_MultiRowTabLite(), false);
6263
function zzzz_MultiRowTabLite() {
6364
// EDITABLE JAVASCRIPT VARIABLES
6465

Installers/Multirow & other functions/functions/MultiRowTab-scrollable.uc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Multi-row tabs draggability fix with scrollable rows
55
// @include main
6-
// @compatibility Firefox 70 to Firefox 131.0a1 (2024-09-07)
6+
// @compatibility Firefox 70 to Firefox 136.0a1 (2025-01-10)
77
// @author Alice0775, Endor8, TroudhuK, Izheil, Merci-chao
8+
// @version 11/01/2025 01:59 Fixed gBrowser issue with Firefox 134+
89
// @version 13/11/2024 23:13 Fixed issue with Firefox 133+
910
// @version 07/09/2024 13:25 Compatibility fix for FF131a (Nightly)
1011
// @version 10/05/2023 18:42 Fix tab-growth variable from not applying
@@ -52,7 +53,7 @@
5253
// @version 30/11/2018 06:12 Now only the necesary rows appear, not static number of rows
5354
// @version 23/11/2018 00:41 Firefox 65
5455
// ==/UserScript==
55-
zzzz_MultiRowTabLite();
56+
window.addEventListener("load", () => zzzz_MultiRowTabLite(), false);
5657
function zzzz_MultiRowTabLite() {
5758
// EDITABLE JAVASCRIPT VARIABLES
5859

Installers/Multirow & other functions/functions/MultiRowTabLiteforFx.uc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Multi-row tabs draggability fix with unlimited rows
55
// @include main
6-
// @compatibility Firefox 70 to Firefox 131.0a1 (2024-09-07)
6+
// @compatibility Firefox 70 to Firefox 136.0a1 (2025-01-10)
77
// @author Alice0775, Endor8, TroudhuK, Izheil, Merci-chao
8+
// @version 11/01/2025 01:59 Fixed gBrowser issue with Firefox 134+
89
// @version 13/11/2024 23:13 Fixed issue with Firefox 133+
910
// @version 07/09/2024 13:25 Compatibility fix for FF131a (Nightly)
1011
// @version 10/05/2023 18:42 Fix tab-growth variable from not applying
@@ -52,7 +53,7 @@
5253
// @version 19/10/2018 07:34 Firefox 62
5354
// @version 11/05/2018 15:05 Firefox 60
5455
// ==/UserScript==
55-
zzzz_MultiRowTabLite();
56+
window.addEventListener("load", () => zzzz_MultiRowTabLite(), false);
5657
function zzzz_MultiRowTabLite() {
5758
let css =`
5859
/* MULTIROW TABS CSS */

Installers/Multirow & other functions/functions/setAttribute_unread.uc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function(){
1+
function addUnreadAttributeListeners() {
22
if (location.href != 'chrome://browser/content/browser.xhtml') return;
33

44
let func = {
@@ -19,4 +19,6 @@
1919
gBrowser.tabContainer.removeEventListener('TabClose', func.remove, false);
2020
window.removeEventListener('unload', uninit, false);
2121
}, false);
22-
})()
22+
}
23+
24+
window.addEventListener("load", () => addUnreadAttributeListeners(), false);

Multirow and other functions/Multirow tabs/MultiRowTab-scrollable-autohide.uc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Multi-row tabs draggability fix with autohiding scrollbar
55
// @include main
6-
// @compatibility Firefox 70 to Firefox 131.0a1 (2024-09-07)
6+
// @compatibility Firefox 70 to Firefox 136.0a1 (2025-01-10)
77
// @author Alice0775, Endor8, TroudhuK, Izheil, Merci-chao
8+
// @version 11/01/2025 01:59 Fixed gBrowser issue with Firefox 134+
89
// @version 13/11/2024 23:13 Fixed issue with Firefox 133+
910
// @version 07/09/2024 13:25 Compatibility fix for FF131a (Nightly)
1011
// @version 10/05/2023 18:42 Fix tab-growth variable from not applying
@@ -58,7 +59,7 @@
5859
// @version 30/11/2018 06:12 Now only the necesary rows appear, not static number of rows
5960
// @version 23/11/2018 00:41 Firefox 65
6061
// ==/UserScript==
61-
zzzz_MultiRowTabLite();
62+
window.addEventListener("load", () => zzzz_MultiRowTabLite(), false);
6263
function zzzz_MultiRowTabLite() {
6364
// EDITABLE JAVASCRIPT VARIABLES
6465

Multirow and other functions/Multirow tabs/MultiRowTab-scrollable.uc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Multi-row tabs draggability fix with scrollable rows
55
// @include main
6-
// @compatibility Firefox 70 to Firefox 131.0a1 (2024-09-07)
6+
// @compatibility Firefox 70 to Firefox 134
77
// @author Alice0775, Endor8, TroudhuK, Izheil, Merci-chao
8+
// @version 11/01/2025 01:59 Fixed gBrowser issue with Firefox 134+
89
// @version 13/11/2024 23:13 Fixed issue with Firefox 133+
910
// @version 07/09/2024 13:25 Compatibility fix for FF131a (Nightly)
1011
// @version 10/05/2023 18:42 Fix tab-growth variable from not applying
@@ -52,7 +53,9 @@
5253
// @version 30/11/2018 06:12 Now only the necesary rows appear, not static number of rows
5354
// @version 23/11/2018 00:41 Firefox 65
5455
// ==/UserScript==
55-
zzzz_MultiRowTabLite();
56+
57+
window.addEventListener("load", () => zzzz_MultiRowTabLite(), false);
58+
5659
function zzzz_MultiRowTabLite() {
5760
// EDITABLE JAVASCRIPT VARIABLES
5861

@@ -389,6 +392,7 @@ function zzzz_MultiRowTabLite() {
389392
gBrowser.tabContainer._getDropIndex = function(event, isLink) {
390393
let tabs = document.getElementsByClassName("tabbrowser-tab");
391394
let tab = this._getDragTargetTab(event, isLink);
395+
console.log("MULTIROW tab: ", tab);
392396
if (window.getComputedStyle(this).direction == "ltr") {
393397
for (let i = tab ? tab._tPos : 0; i < tabs.length; i++) {
394398
let rect = tabs[i].getBoundingClientRect();

Multirow and other functions/Multirow tabs/MultiRowTabLiteforFx.uc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// @namespace https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme
44
// @description Multi-row tabs draggability fix with unlimited rows
55
// @include main
6-
// @compatibility Firefox 70 to Firefox 131.0a1 (2024-09-07)
6+
// @compatibility Firefox 70 to Firefox 136.0a1 (2025-01-10)
77
// @author Alice0775, Endor8, TroudhuK, Izheil, Merci-chao
8+
// @version 11/01/2025 01:59 Fixed gBrowser issue with Firefox 134+
89
// @version 13/11/2024 23:13 Fixed issue with Firefox 133+
910
// @version 07/09/2024 13:25 Compatibility fix for FF131a (Nightly)
1011
// @version 10/05/2023 18:42 Fix tab-growth variable from not applying
@@ -52,7 +53,7 @@
5253
// @version 19/10/2018 07:34 Firefox 62
5354
// @version 11/05/2018 15:05 Firefox 60
5455
// ==/UserScript==
55-
zzzz_MultiRowTabLite();
56+
window.addEventListener("load", () => zzzz_MultiRowTabLite(), false);
5657
function zzzz_MultiRowTabLite() {
5758
let css =`
5859
/* MULTIROW TABS CSS */

Multirow and other functions/Other features/Focus-tab-on-hover.uc.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
// @include main
66
// @compatibility Firefox 73
77
// @author Izheil
8+
// @version 11/01/2025 02:48 Fixed issue with gBrowser not being detected
89
// @version 06/12/2019 18:27 Fixed some issue with undefined elements
910
// @version 23/10/2019 02:49 Fixed delay function
1011
// @version 19/10/2019 23:37 Initial release
1112
// ==/UserScript==
1213

1314
// You can set the delay you want for the hover tab to take effect before switching to another tab.
1415
// Use miliseconds (only the number). 1 second = 1000 miliseconds.
15-
var delayBeforeSwitch = 1000;
16+
let delayBeforeSwitch = 1000;
1617

1718
function getParentByClass(el, className) {
1819
do {
@@ -25,10 +26,10 @@ function getParentByClass(el, className) {
2526
}
2627

2728
function hoverHandler(e){
28-
var EvEl = getParentByClass(e.target, "tabbrowser-tab");
29+
let EvEl = getParentByClass(e.target, "tabbrowser-tab");
2930
if (EvEl != undefined) {
3031
if (delayBeforeSwitch > 0) {
31-
var delay;
32+
let delay;
3233
delay = setTimeout(function(){
3334
EvEl.closest("tabs")._selectNewTab(EvEl)
3435
}, delayBeforeSwitch);
@@ -41,4 +42,6 @@ function hoverHandler(e){
4142
}
4243
}
4344

44-
gBrowser.tabContainer.addEventListener('mouseover', hoverHandler, false)
45+
window.addEventListener('load', () => {
46+
gBrowser.tabContainer.addEventListener('mouseover', hoverHandler, false);
47+
}, false);

Multirow and other functions/Other features/Mac-fullscreen-fix-toolbox-autohide.uc.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// ==/UserScript==
1111

1212
// We define all variables first
13-
var navBox = document.querySelectorAll("#navigator-toolbox[inFullscreen='true']")[0],
13+
let navBox = document.querySelectorAll("#navigator-toolbox[inFullscreen='true']")[0],
1414
fsToggler = document.getElementById("fullscr-toggler");
1515

1616
// This shows the navigation bar when hovering over the fullscr-toggler element (div on top of screen)
@@ -19,16 +19,16 @@ fsToggler.onmouseover = function() {
1919
navBox.style.opacity = "1";
2020
fsToggler.style.display = "none";
2121

22-
var bookmarkItems = document.querySelectorAll("#PlacesToolbarItems .bookmark-item");
23-
for (var i = 0; i < bookmarkItems.length; i++) {
24-
bookmarkItems[i].style.visibility = "visible";
25-
}
22+
let bookmarkItems = document.querySelectorAll("#PlacesToolbarItems .bookmark-item");
23+
for (const element of bookmarkItems) {
24+
element.style.visibility = "visible";
25+
}
2626
}
2727

2828
// This hides the navigation bar when hovering over the web area
2929
document.getElementById("browser").onmouseover = function() {
30-
navBox.style.visibility = "collapse";
31-
navBox.style.opacity = "0";
30+
navBox.style.visibility = "collapse";
31+
navBox.style.opacity = "0";
3232
fsToggler.style.display = "block";
3333
fsToggler.style.height = "1px";
3434
}

0 commit comments

Comments
 (0)