How can I launch FireFox with no window frame or tabs / address bar?

7

1

I am looking for a way to launch Firefox from a script or command line without any window frame, address bar, or tabs. I'd like to be able to launch this at a given window size and position on screen.

Illustration:

firefox browser

I'd like to only be able to see the section that is comprised of the red box, and the area inside of it.

Using AutoHotKey in Windows, I've been able to launch FireFox at a given window size / position. However, If I try to launch Firefox in "chromeless" mode, and try to resize the window with AHK, I end up with a 0 px by 0 px browser window.

My AutoHotKey Script:

Run, C:\Program Files\Mozilla Firefox\firefox.exe -chrome http://www.google.com/
WinWait, Mozilla Firefox
WinMove,,,100,100,400,300

I've found related questions, but I've not found a solution:

How can I launch a browser with no window frame or tabs

How can I run Firefox with no tab bar, no top bar, no address bar

Sparky1

Posted 2016-03-31T20:11:02.180

Reputation: 171

1R-Kiosk extension – DavidPostill – 2016-03-31T20:14:38.607

1mKiosk extension – DavidPostill – 2016-03-31T20:16:14.037

It looks like it will take a lot of modification to one of these kiosk extensions to produce the result I'm after. I'll dig in and see what I can make happen. – Sparky1 – 2016-04-01T15:36:31.513

Related: Launching Firefox into “chromeless” mode from command prompt (not sure if that still works). And just found after writing my below answer: As a user, how can I open a site in a popup window without toolbars?

– Izzy – 2016-11-22T14:30:08.840

@user498283 suggests pressing F11 – CalvT – 2017-05-15T12:47:08.447

Here's a recent question on point: https://superuser.com/questions/1356778/firefox-quantum-kiosk-mode.

– BobtheMagicMoose – 2018-12-11T23:15:11.567

Answers

1

For that, there once was an addon called "Open Chromeless" – but it was removed from AMO. A work-around is described here; I've just checked it and it seems to work. Partly. Cannot get rid of the addressbar, and there's a frame around the window. If you can live with that:

  1. Press Shift-F4 to open the Scratchpad
  2. In the editor, enter

    window.open("https://superuser.com/", "_blank","width=800,height=600,resizable");
    

    (replace the URL with the one you want to use)

  3. Click "Run" on the scratchpad toolbar

Now a new "chrome-less" window should open with the page specified. Resize it to your needs:

screenshot
Screenshot of the "chromeless window" (click to enlarge)

Right-click next to the addressbar, as shown in the screenshot, lets you disable the address bar as well (untick "Navigation toolbar") – but note that would remove it from your main window as well.

I'm aware this does not fully match your request (it's not launching from the command line, and leaves at least a frame around the window), but it comes as close as I could get to it.

Izzy

Posted 2016-03-31T20:11:02.180

Reputation: 3 187

0

When I wanted to do this full screen I did something like this:

firefox -url http://superuser.com -fullscreen

But I had to install an add-on to get rid of all the extra decorations.

"full fullscreen" if I remember the name correctly

For smaller geometries, I don't know

infixed

Posted 2016-03-31T20:11:02.180

Reputation: 759

In my testing, the "-fullscreen" option does nothing. My searches indicate that others have had the same result. – Sparky1 – 2016-04-01T15:34:37.630