Aris-t2 / CustomJSforFx

custom scripts
GNU General Public License v3.0
238 stars 22 forks source link

additional_top_toolbars start hidden #24

Closed rayman89 closed 4 years ago

rayman89 commented 5 years ago

@Aris-t2 Is it possible to add something to the additional_top_toolbars.uc.js script to make the new toolbar appear as it was unticked / hidden / not showing when the browser starts or if that not possible would it be possible to create a key combination to hide/show it? Thank you.

Aris-t2 commented 5 years ago

Sorry, I saw the post before, but did not have the time to answer yet:

Add to this line https://github.com/Aris-t2/CustomJSforFx/blob/master/scripts/additional_top_toolbars.uc.js#L52 this code: setToolbarVisibility(toptoolbar, false); and top toolbars will always be collapsed on startup.

If you need a hotkey, try to adopt the code from "addonbar.uc.js" script: https://github.com/Aris-t2/CustomJSforFx/blob/master/scripts/addonbar.uc.js#L97

rayman89 commented 5 years ago

Oh sorry I thought you were having problems with the notifications again. Thank you.

rayman89 commented 4 years ago

@Aris-t2

setToolbarVisibility(toptoolbar, false);

Sadly it seems to not work anymore. Did the syntax change or something?

Im using method 3

Aris-t2 commented 4 years ago

I'm using method 2 on Nightly and it still works fine for me.

rayman89 commented 4 years ago

I'm on 71b6 and the script is working but that part is not. Any ideas?

Aris-t2 commented 4 years ago

I can confirm this.

Aris-t2 commented 4 years ago

@rayman89 I had to use a few workarounds, but the updated version works again.

rayman89 commented 4 years ago

Thank you. Its working great now.