Skip to content
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

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

Open
LummoxJR opened this issue Jan 16, 2025 · 1 comment
Open

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

LummoxJR opened this issue Jan 16, 2025 · 1 comment

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.

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

1 participant