Start-up in fulscreen mode

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
KaptenHans
New to the forum
New to the forum
Posts: 2
Joined: 2022-09-16, 05:35

Start-up in fulscreen mode

Unread post by KaptenHans » 2022-09-16, 05:58

Is it possible to make the browser start in fullscreen mode?
When I start my computer I want it to start showing a webpage without menu/toolbars.
How do I make Pale Moon autoexecute the "F11" command at startup?

(Visually Similar to the "kiosk-mode" in Firefox)

Blacklab
Board Warrior
Board Warrior
Posts: 1080
Joined: 2012-06-08, 12:14

Re: Start-up in fulscreen mode

Unread post by Blacklab » 2022-09-16, 09:24

Hi KaptenHans,

Have a look at answers in this previous forum post 'How to start Pale Moon in fullscreen mode?': viewtopic.php?f=3&t=27853

PS. Forum search will quickly locate previous answers to the same or similar queries.
The Search box is top right on every forum page.
Advanced Search is accessed by clicking the 'gearwheel/cog' icon at RH end of the Search box.
e.g. Results for a forum search using the term 'fullscreen' are: search.php?st=0&sk=t&sd=d&sr=posts&keywords=fullscreen

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Start-up in fulscreen mode

Unread post by Kris_88 » 2022-09-16, 13:18

KaptenHans wrote:
2022-09-16, 05:58
How do I make Pale Moon autoexecute the "F11" command at startup?
There is a method to do this without the use of extensions.
1) Locate the palemoon.exe file and place the startup.js file in the same folder.

startup.js :

Code: Select all

// must skip 1st line, do not remove

Components.utils.import("resource://gre/modules/Services.jsm");
function onNewWin(aSubject, aTopic, aData) {
  let win = Components.classes["@mozilla.org/appshell/window-mediator;1"]
              .getService(Components.interfaces.nsIWindowMediator)
              .getMostRecentWindow('navigator:browser');
  win.fullScreen = true;
  win.document.documentElement.setAttribute("sizemode", "maximized");
  Services.obs.removeObserver(onNewWin, "browser-window-before-show");
};
Services.obs.addObserver(onNewWin, "browser-window-before-show", false);
2) Starting from this folder, find the "defaults\pref\" subfolder and put the config-prefs.js file there:

defaults\pref\config-prefs.js:

Code: Select all

pref("general.config.filename", "startup.js");
pref("general.config.vendor", "startup.js");
pref("general.config.obscure_value", 0);
Restart the browser.

User avatar
KaptenHans
New to the forum
New to the forum
Posts: 2
Joined: 2022-09-16, 05:35

Re: Start-up in fulscreen mode

Unread post by KaptenHans » 2022-09-19, 07:01

I forgot to specify that I run Pale Moon with OS Xubuntu 20.04. I'm sorry that I was unclear regarding my question. I hope there is a soultion anyway.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Start-up in fulscreen mode

Unread post by Kris_88 » 2022-09-19, 07:49

For unix, most likely:
/usr/lib/palemoon/defaults/pref/config-prefs.js
/usr/lib/palemoon/startup.js

I don’t have the opportunity to check on Ubuntu, but the method works on the Puppy Linux.
Folders are: /opt/palemoon, /opt/palemoon/defaults/pref/

Locked