status-bar.uc.js breaks in Firefox 135.0b5
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.
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.
thanks updated firefox today and the status bar was broken
Thanks for the fix, it's a life saver!
Thanks!