firefox-scripts icon indicating copy to clipboard operation
firefox-scripts copied to clipboard

status-bar.uc.js breaks in Firefox 135.0b5

Open LummoxJR opened this issue 1 year ago • 4 comments

The status bar script no longer works in Firefox 135.0b5. I did some research and discovered that the issue was a change to the HTML of the chrome document. The ID of the element that bottomBox is inserted after has changed.

This is the fix required:

-    document.getElementById('fullscreen-and-pointerlock-wrapper').insertAdjacentElement('afterend', bottomBox);
+    document.getElementById('pointerlock-warning').insertAdjacentElement('afterend', bottomBox);

I hope that helps others having the same issue.

LummoxJR avatar Jan 16 '25 21:01 LummoxJR

I wanted to add, this is the format to use for older Firefox versions, which should continue working once you update to 135:

    let before = document.getElementById('fullscreen-and-pointerlock-wrapper');	// works until Firefox 135.0b5
    if(!before) before = document.getElementById('pointerlock-warning');	// required for Firefox 135.0b5 onward
    before.insertAdjacentElement('afterend', bottomBox);

If you use that you should be able to update and not worry about it, at least until other scripts break in 136.

LummoxJR avatar Jan 17 '25 17:01 LummoxJR

thanks updated firefox today and the status bar was broken

eilegz avatar Feb 04 '25 22:02 eilegz

Thanks for the fix, it's a life saver!

mozo78 avatar Feb 05 '25 12:02 mozo78

Thanks!

TFWol avatar Feb 06 '25 06:02 TFWol