Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LummoxJR opened this issue Jan 16, 2025 · 4 comments
Open

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

LummoxJR opened this issue Jan 16, 2025 · 4 comments

Comments

@LummoxJR
Copy link

LummoxJR commented Jan 16, 2025

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
Copy link
Author

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.

@eilegz
Copy link

eilegz commented Feb 4, 2025

thanks updated firefox today and the status bar was broken

@mozo78
Copy link

mozo78 commented Feb 5, 2025

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

@TFWol
Copy link

TFWol commented Feb 6, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants