Arty2 / userstyles

Home-made UserStyle CSS files, to be used with Stylus or similar browser addons.
MIT License
41 stars 4 forks source link

Fix tabs_to_bottom.userchrome.css for firefox version 119 #5

Closed lilly-lizard closed 11 months ago

lilly-lizard commented 11 months ago

Firefox version 119 removed the navigator-toolbox-background class meaning that the navigator toolbox was not being moved to the bottom of the window anymore. Renaming it to navigator-toolbox fixes this.

lilly-lizard commented 11 months ago

Note that this will obviously no longer work for 118.0.2 and prior but I just tried having both at the same time...

/* for version 119 up */
#navigator-toolbox {
        -moz-box-ordinal-group: 1 !important;
        order: 1 !important;
}

/* for version 118.0.2 and prior */
#navigator-toolbox-background {
        -moz-box-ordinal-group: 1 !important;
        order: 1 !important;
}

and it works on both 118.0.2 and 119. Up to you wherever backwards compatibility is worth making the code a bit more messy

FirefoxSurvivor commented 11 months ago

Hello there,

I asked for help about this issue two weeks ago here: https://gist.github.com/Arty2/e6e61801531ec5ee1f9f

I restored v11.8.0.2 but removing "-background" from the userChrome.css file, like You wrote, didn't work for me. I also tried removing the other "-background" that is upper, but nothing. Any idea?

Thank You anyway. I hope this problem will be fixed soon.

FirefoxSurvivor commented 11 months ago

Sorry, maybe i didn't explain well what i mean: on Firefox 118.0.2 the addon works fine as it is. But if i remove "-background" tabs and url bar come back to top. However, i didn't try Your suggestion yet on Firefox 119.

FirefoxSurvivor commented 11 months ago

It's again me. I updated to 119 and Your fix works just fine. Thank You! I can't image how the hell You understood the cause, but You are great. Bye!

lilly-lizard commented 11 months ago

@FirefoxSurvivor nice username haha. glad it worked! fyi you can use the browser toolbox to figure out the css names of the firefox ui elements which is how I figured out that navigator-toolbox-background needed to be renamed to navigator-toolbox for version 119