I'm wondering if there's a way to limit the full screen mode in youtube to just the window that Firefox already takes up. I know that Firefox has the picture in picture mode that creates a floating window, but that seems like a pretty hacky way of doing it. I'd like be able to just click full screen and have the full screen constrained to that window. It would also be nice to have it on a key toggle so that I could have the video take up the whole screen sometimes.I'm using Qtile as my window manager.

  • 1
    Not a 'native' solution, but you could use an extension like this one: addons.mozilla.org/en-US/firefox/addon/windowed
    – Haxiel
    Commented Jun 21, 2021 at 3:20
  • Not really the solution I was hoping for, but it's something that can work until I figure out a way to do it without a Firefox extension. Thanks.
    – Parax
    Commented Jun 21, 2021 at 4:39
  • The question is contradictory. In essence, "How can I get fullscreen without fullscreen?" It sounds like what you want is to make the video play in the full size of the Firefox window, instead of fullscreen or in a player that only displays on part of the page, correct? (Edit your question to clarify, so that others on the site will see it and understand... do not simply reply in comments which they may not read...)
    – C. M.
    Commented Jun 22, 2021 at 8:24

2 Answers 2


You can do this by setting auto_fullscreen = False in your config. Set a key binding for manually going full screen using lazy.window.toggle_fullscreen() and you'll be good to go. Now, whenever you double click on a video or press f, it will only take up the window size unless you manually switch to fullscreen mode with your keyboard shortcut.


Another hack would be to change the YouTube URL from




This would leave you with the video maximized within the current tab + the tab bar and the toolbar on top which you can remove by other means if you want.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .