MrOtherGuy / firefox-csshacks

Collection of userstyles affecting the browser
Mozilla Public License 2.0
3.19k stars 312 forks source link

autohide_toolbox.css Feature Request, or Question (HotKey related) #251

Open qwksilver opened 1 year ago

qwksilver commented 1 year ago

I love this, it provides the exact look i need which is a menuless window, usually while using youtube in theatre or fullwindowed mode, i am wondering however how to modify this to activate/deactivate on hotkey say f9, or even take over f11 if i choose.

pre-emtive question elimination, i am on a 4k tv as a monitor, so i would like to use 1/4 of the screen as a tv sometimes, and not have the menu bars. and i also don't usually want to be in fullscreen mode where i can watch and work at the same time.

MrOtherGuy commented 1 year ago

You can't create such hotkeys with CSS.

To achieve something like that you would need to use an extension to register a hotkey which when pressed adds some kind of prefix to the window title. With that it should be possibly to slightly modify autohide_toolbox.css to apply only when the window title has that prefix.