aminomancer / uc.css.js

A dark indigo CSS theme for Firefox and a large collection of privileged scripts to add new buttons, menus, and behaviors and eliminate nuisances. The theme is similar to other userChrome stylesheets, but it's intended for use with an autoconfig loader like fx-autoconfig, since it uses JavaScript to implement its more functional features.
Other
326 stars 27 forks source link

[BUG] Private tabs button disappears inside the tab bar when the tab bar is full. #95

Open kaos-55 opened 3 months ago

kaos-55 commented 3 months ago

Link to the file containing the bug https://github.com/aminomancer/uc.css.js/blob/master/JS/privateTabs.uc.js

Describe the bug When the private tab button is placed in front of the new tab button in the tab bar, it disappears as soon as the tab bar is full. To access the private tabs button, scroll to the last tab.

To Reproduce Steps to reproduce the behavior:

  1. Install de private tab script.
  2. Move the private tab script in front of the new tab button in the tab bar.
  3. Open many tabs until the tab overflow arrows appear.
  4. The private tabs button disappears and is located at the end of the last tab.

Expected behavior The private tabs button should remain in place when the tab overflow arrows appear

Screenshots

https://github.com/aminomancer/uc.css.js/assets/86812371/b9086bea-3231-416a-9d47-bb876dedadc9

Desktop (please complete the following information):

Additional context This problem does not occur if you place any other button in the same place, for example the new private window button.

kaos-55 commented 2 months ago

Again bothering you @aminomancer but I would like to add something I discovered. After testing the script for a while I noticed that one of the script's features does not work properly, the script has a function to keep the history but there are times when it does not work. I moved the private tab button to the toolbar and apparently that function remains intact, however when firefox is restarted the private tab button returns to its original place (in front of the new tab button), apparently the script forces to keep it in that position. I want to believe that if the main problem is solved the script will work as usual, it happened before when the script did not work because of a problem with the private tab indicator.