This is a short guide on how to set up a Firefox profile with no UI (no tabs, no address-bar, no bookmarks, etc.). Note that it is written for and only tested on Arch Linux. You'll probably need to perform different steps on Windows.
- Create a new Firefox profile
- Run this shell command:
firefox --no-remote --profilemanager
- In the Firefox - Choose User Profile-dialog, click Create Profile...
- In the Create Profile Wizard-dialog, click Next
- Type
bare-ui
as the profile name - Click Finish
- Run this shell command:
- Launch the profile
- In the Firefox - Choose User Profile-dialog, select the newly created
bare-ui
profile - Un-select the Work offline and Use the selected profile without asking at startup options
- Click Start Firefox
- Complete the standard first-run experience
- In the Firefox - Choose User Profile-dialog, select the newly created
- Go to
about:config
and apply the following settings:Key Type Value toolkit.legacyUserProfileCustomizations.stylesheets
Boolean true
browser.tabs.inTitlebar
Number 0
- Go to
about:support
and look for a column named Profile Directory and click the Open Directory butten next to it - Close Firefox
- Create a new sub-directory called
chrome
and open it - Create a new file called
userChrome.css
and paste the following CSS-code into it:
#nav-bar, #TabsToolbar, #PersonalToolbar, #toolbar-menubar {
visibility: collapse !important;
}
#sidebar-header {
display: none !important;
}
After this, you should be able to start a UI-less Firefox instance by simply running this shell command:
firefox --no-remote -P 'bare-ui' 'https://example.com'
A final note: You can call the profile anything you want, just replace any
occurance of bare-ui
in this document with your desired profile name.