12

When using multiple windows on the same monitor, I like to have Firefox and my IDE open side to side (like with Win+Arrow) and it would be cool to have Firefox in a "fullscreen-like" style, where the tab and address bar are temporarily hidden. Is there a way to prevent it from maximizing the window or telling it, to only use half of the actual screen, when pressing F11?

Alternatively, sites like YouTube offer to play a video on full screen. Is there a way, to let single tabs/sites take up the current size of my browser only?

Summarized, I'd like to have the ability to tell a window OR tab, which is switching in "fullscreen" mode, how much of my screen it's actually allowed to take up. For me, tt doesn't matter, if it's a Firefox or Cinnamon setting.

I'm using Firefox 69.0 on a Manjaro Linux with Cinnamon as Desktop.

hexnov
  • 121

2 Answers2

18

Was looking for the same thing and after a bit of digging I learned that this can be achieved by setting full-screen-api.ignore-widgets to true in about:config. After setting this, the full screen hotkey/button will trigger fullscreen like normal, except it won't resize the window. This allows you to have several applications open on a single monitor along side a "pseudo fullscreen" firefox.

scorch855
  • 281
  • 2
  • 3
1

I was looking for something similar, it was not exactly what i was looking for but i think it provides what you want.

Unfortunataly the first solution is removed in Firefox Nightly 86.0a1

Firstly, the source for this information is here. The main idea is to use a web site like an App, so the browser toolbars are not visible in this mode.

I will be copying the instructions from the source to make them permanent here.

Install a website as an App in the Firefox browser

  1. To get started, download and install Firefox Nightly on your computer, and launch it
  2. Load about:config and create a Boolean Pref named browser.ssb.enabled and choose its value as true.
  3. Restart Firefox and visit any website in the address bar, click on … icon to open the Page Action menu and select Use this site in App mode. Example screenshot.

Tip: You can right-click and add that icon to address bar so that, next time, you can install apps more easily by clicking on that icon.

  1. The website’s shortcut will be created on the desktop and that site will open in a window with site favicon without any toolbars, browser chrome, and navigational elements when launched. Example screenshot.

Uninstalling Apps in Firefox browser

  1. In the Firefox browser, click on the hamburger menu icon to open the menu,

  2. Select Sites in App Mode, click on close icon at the end of a website title, that app will be uninstalled. Example screenshot.

Starting from Firefox version 73 Nightly

This kind of shortcut seems to let you easily launch the website in "Site Specific Browser" mode directly:

"C:\Program Files\Firefox Nightly\firefox.exe" --ssb https://www.google.com

Edit: A modern solution in form of an extension (and a helper userscript if necessary) that currently works

This extension lets you to choose between several modes for a web page that supports "Fullscreen" modes. You can either choose "Windowed" (probably the one you want), "In-window" (the one i wanted), "PiP" (Picture-in-Picture) and regular "Fullscreen" mode.

If a page does not support any form of FullScreen toggle, a userscript like this can help. In this userscript

(function() {
    'use strict';
    document.addEventListener("keydown", function(e) {
        var key = event.which || event.keyCode;
        if (key == 122 && document.fullscreenEnabled){
            if (!document.fullscreenElement)
                document.documentElement.requestFullscreen();
            else if (document.exitFullscreen)
                document.exitFullscreen();
        }
    });
})();

key == 122 part can be replaced to have another button as shortcut. Key codes for keyboard buttons can be found in tools like https://keycode.info/. Pressing the shortcut pops up the extensions menu like https://i.imgur.com/aFETyxw.png. You can choose "In-window" here to have your web page in a standalone window without any toolbars.

Said
  • 11