Ń ṣàfihàn àwọn ìbéèrè aṣàmì: Ṣàfihàn gbogbo àwọn ìbéèrè

Inline JavaScript to hide bookmarks sidebar upon opening new browser instance

Does anybody know which options to use on the command-line start of Firefox such that the only thing displayed is the area within which an HTML page would be presented? … (kàsi)

Does anybody know which options to use on the command-line start of Firefox such that the only thing displayed is the area within which an HTML page would be presented?

I want to have it start with everything else turned off or hidden, namely

   memu bar
   page tabs bar
   address bar along all add-on buttons
   bookmarks sidebar

The "-kiosk" option is not appropriate for my needs.

-kiosk doesn't hide the sidebar (Bookmarks or not) if that sidebar was visible during last session before exit ... so ... no, "-kiosk" is not a proper implementation of a "page-only" display mode.

"-private-window" gives no benefit, display-wise, over and above what the "-new-window" option provides.

Everything I've read (even on the Mozilla support site) seems to point to creating a special profile for just that mode, and then to modify the "userChrome.css" file with custom properties to ensure the desired "off" setting for the GUI elements. That seems a rather "small-minded" view, ignoring the potential for huge market of self-contained hard-coded applications that would need only use the Firefox rendering engine, and nothing else!

One comment on Reddit indicated that the functionality was there ("-app" option working with XULrunner), but discontinued!


As a test, I did close all my browsers, leaving the bookmark sidebar visible before closing. I then entered:

firefox -kiosk -safe-mode -private-window ${URL}

I still get the bookmark-sidebar visible, with everything else "hidden" or "disabled", because visible sidebar is my default mode for normal browsing.

Is there no command-line startup switch to force that sidebar to "hide", equivalent to clicking on the "X" on the top-right corner?

OR ...

Is there any programmatic way to tell that to hide using JavaScript in the HTML page that is loaded? Everything I seem to locate refer to in-page Elements only, not Browser Elements. :frowning:

But "kiosk"(fullscreen-mode) is not the mode I want, because I want users to be able to have the simplified browser-based HTML App co-exist on the desktop with other windows, like a normal App.



    • Basic HTML test page** *(myHtmlGame.html)* **:**

``` <meta charset="UTF-8"> <title>myHtmlGame.html</title> <link href="myHtmlGame_bookmarks.css" rel="stylesheet" type="text/css"> <script src="myHtmlGame_bookmarks.js" type="text/javascript"> </script>

Box A
Box B
Box C
Box D
Box E
<script> {what to I place here } </script> ```



    • Basic Javascript file** (*myHtmlGame_bookmarks.js*) **:**

```

// REF: https://stackoverflow.com/questions/1690002/how-can-i-prevent-firefox-showing-my-extensions-sidebar-on-startup var current = this;

var quitObserver = {

  QueryInterface: function(aIID) {
     if (aIID.equals(Components.interfaces.nsIObserver) || aIID.equals(Components.interfaces.nsISupports)) {
        return this;
     }
     throw Components.results.NS_NOINTERFACE;
  },
  observe: function(aSubject,aTopic,aData ) {
     var mainWindow = current._windowMediator.getMostRecentWindow("navigator:browser");
     var sidebar  = mainWindow.document.getElementById("sidebar");
     if (sidebar.contentWindow.location.href == "chrome://daisy/content/sidebar.xul") {
        mainWindow.toggleSidebar('openDaisySidebar', false);
     }
  }

};

setTimeout(function() {

  var mainWindow = current._windowMediator.getMostRecentWindow("navigator:browser");
  var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
  observerService.addObserver(quitObserver,"quit-application-granted",false);

},2000); ```


I've tried using this alternative content for the JavaScript file, but that also failed (using '*hideSidebarBookmarks()*' call in the in-line script segment):

``` function hideSidebarBookmarks() { const sidebar = document.getElementById("CustomizableUI.AREA_BOOKMARKS") ; sidebar.hide() ; } ```

I even tried replacing the word "document" with "browser" in the above, still with no success. :-(



    • Startup command :**

``` firefox -new-window ./myHtmlGame.html & ```



    • Basic CSS file** *(myHtmlGame_bookmarks.css)* **:**

``` html { font-size: 14px ; font-family: "Liberation Sans", "Aileron", "Archivo", FreeSerif, serif ; line-height: 1.2em ; }

body { display: block ; background-color: #1F1F1F ; color: #FF0000 ;

margin-top: 0 ; margin-right: 0 ; margin-bottom: 0 ; margin-left: 0 ; }

/*

************************************************************************
*/

.game-grid { display: grid ; grid-template-columns: 300px 300px 60px ; grid-template-rows: 40px 300px 150px ; }

.game-item-1 { grid-column: 1 / span 3 ; grid-row: 1 / span 1 ; border: 1px solid #8FCF8F ; background-color: #1F1F1F ; }

.game-item-2 { grid-column: 3 / span 1 ; grid-row: 2 / span 2 ; border: 1px solid #8FCF8F ; background-color: #1F1F1F ; }

.game-item-3 { grid-column: 1 / span 2 ; grid-row: 2 / span 1 ; border: 1px solid #8FCF8F ; background-color: #1F1F1F ; }

.game-item-4 { grid-column: 1 / span 1 ; grid-row: 3 / span 1 ; /* box-sizing: border-box ; */ border: 1px solid #8FCF8F ; background-color: #1F1F1F ;

padding-left: 3 em ;

display: block ; color: #FFCF4F ;

word-wrap: break-word ; /* overflow-y: scroll ; overflow-y: auto ; */ overflow-anchor: none ; scrollbar-color: grey-black ; scrollbar-width: thin ; scroll-padding-bottom: 20px ;

/* In case you need to kick off effect immediately, this plus JS */ /* height: 100.001vh ; */ }


.game-item-5 { grid-column: 2 / span 1 ; grid-row: 3 / span 1 ; border: 1px solid #8FCF8F ; background-color: #1F1F1F ; }

div { padding-top: 1 em ; padding-right: 0 ; padding-bottom: 1 em ; padding-left: 0 ; }

```

The above will display per the attached image.

Asked by EricM 58 àwọn ìṣẹjú ṣẹ́hìn

Last reply by EricM 7 àwọn ìṣẹjú ṣẹ́hìn

Sign in with Google

On a laptop, when I access some web sites, I see a pop-up notification to "Sign in with Google." How can I disable that notification?

Thank you.

Asked by denleehar 41 àwọn ìṣẹjú ṣẹ́hìn

Use sytem themes and cursor on Zen Browser

I have a different theme and cursor on my system. I would like to include them in Zen Browser. They are Candy Mac and Azenis respectively. There is no setting to do th… (kàsi)

I have a different theme and cursor on my system. I would like to include them in Zen Browser. They are Candy Mac and Azenis respectively. There is no setting to do this. Many other browsers have System themes as an option.

Asked by bobcollard 2 àwọn wákàtí sẹ́hìn

multiple issues using PC

Hello! I have multiple issues with Firefox after YEARS and YEARS of usage. 1) There is always a problem logging into sites that require captcha. This started happening a… (kàsi)

Hello! I have multiple issues with Firefox after YEARS and YEARS of usage.

1) There is always a problem logging into sites that require captcha. This started happening a few months ago. So sites will not open in Firefox, but there's no problem with using Chrome.

2) All of a sudden, when I open and download PDFs from websites, the documents are black. I've gone in and disabled dark theme, but that hasn't made a difference. Again, this is a Firefox issue because it doesn't happen when I'm using Chrome.

Hoping you can help me with both issues. Thanks much!

Asked by marietal 3 àwọn wákàtí sẹ́hìn

printing

printing in tvs dotmatric printer incorrect alphabet jumpover one another

Asked by Sarat Chandran 10 àwọn wákàtí sẹ́hìn

themes

les themes ne s'appliquent pas!

Asked by Muriel 10 àwọn wákàtí sẹ́hìn

Einstellung "mailto"

Hallo, ich habe im Zusammenhang mit dem Übergang zu Windows 11 das Office 2024 Pro installiert. Dabei haben sich zwei Probleme gezeigt: 1. Für das versenden von Links mi… (kàsi)

Hallo, ich habe im Zusammenhang mit dem Übergang zu Windows 11 das Office 2024 Pro installiert. Dabei haben sich zwei Probleme gezeigt: 1. Für das versenden von Links mit Emails habe ich in den Einstellungen "Allgemein" unter "Anwendungen.mailto" das Programm OUTLOOK (classic) in beiden von mir genutzten lokalen Konten zugewiesen. In einem der beiden Konten wird im Gegensatz zu dieser Einstellung immer zu der Aufforderung zur Verbindungsaufnahme mit einem Microsoft-Konto verlangt. Zu einer Anzeige des Outlook-Sendefensters kommt es nicht. Welche Ursache kann es dafür geben und wie kann ich das Problem beheben? 2. Wie in dem beigefügten Bild dargestellt, erscheint bei der Nutzung der mailto-Funktion in beiden lokalen Konten diese Fehlermeldung, die bei normaler Nutzung von Outlook nicht auftritt. Meine Internet-Recherche zu dieser Fehlermeldung hat leider nichts greifbares ergeben. Könnt Ihr mir weiterhelfen? MfG, R. Ziegler.

Asked by raiziegler 12 àwọn wákàtí sẹ́hìn

Language problem

My Mozilla language is still in mandarin. even i change my region to Pakistan and in language preferences i chooses English US and remove Chinese but still when i search … (kàsi)

My Mozilla language is still in mandarin. even i change my region to Pakistan and in language preferences i chooses English US and remove Chinese but still when i search webpage and everything in Mozilla is Chinese language.

Asked by tc8h8cvypq 17 àwọn wákàtí sẹ́hìn

login

Singkron

Asked by Rara ReynKu 18 àwọn wákàtí sẹ́hìn

firefox is saving everything

firefox is saving every picture that it shows and I think I set something for it to do that. How do I stop it? (its driving me nuts)

Asked by greg 21 àwọn wákàtí sẹ́hìn

I don't know what is going on Nothing is working. My bookmarks are gone, I can't find how to get full screen

Some how my info is all gone and nothing works including any of help suggestions. I don't think this is even firefox it is more like msn. I keep downloading Firefox and… (kàsi)

Some how my info is all gone and nothing works including any of help suggestions.

I don't think this is even firefox it is more like msn. I keep downloading Firefox and it crashes. I don't know how to fix any of this. I can't even get to see how firefox has looked since maybe 2001. My upper toolbar is all different. It is all wrong and I can't find my hundreds of book marks are all gone.

I can see maybe 10 bookmarks but not from firefox.

Asked by mdcubfan1 22 àwọn wákàtí sẹ́hìn

disconnect "coupled" tabs in systray

I run Windows 10 pro. I have FF 135.0 All my Firefox tabs in the systray stay connected. That is, I can not move them to where I want them on the systray. How do I … (kàsi)

I run Windows 10 pro. I have FF 135.0

All my Firefox tabs in the systray stay connected. That is, I can not move them to where I want them on the systray.

How do I disconnect them?

Asked by Joe P 1 ọjọ́ tó kọjá

debugger tab say "This page has no sources"

Using firefox developer edition for past 1 year now, but now with recent update in the debugger tab it says "This page has no sources" even not showing html source code. … (kàsi)

Using firefox developer edition for past 1 year now, but now with recent update in the debugger tab it says "This page has no sources" even not showing html source code. but when searching for something using find in all files(Shift + Cmd + F ) it showing the files. it's kind of difficult for me to debug the javascript and see the html source.

Technical details: software - firefox developer edition - version 136.0b6 os - mac

Asked by Aadhie 1 ọjọ́ tó kọjá

finish set up

why does it continue to say "finish setup" when blue bar is complete and all the options are checked? I can find nothing I've missed in settings.

Asked by bkmartin2431 1 ọjọ́ tó kọjá

Not able to copy and paste from other sites to outlook

Hello, I can not longer copy and paste to outlook from other sites. They recommended to check my browser permissions. How do I do this for this issue. It started after m… (kàsi)

Hello, I can not longer copy and paste to outlook from other sites. They recommended to check my browser permissions. How do I do this for this issue. It started after my last update. Thanks bunches

Asked by H R 2 àwọn ọjọ́ tó kọjá

SOUND CONTROL

I DO NOT HAVE A SOUND OT MY DELL COMPUTER VIDEO AND FIMS AND NEWS.

Asked by Rumen Popov 2 àwọn ọjọ́ tó kọjá

How can we count on DNS as secure when it is not in the address box ?

How can we trust you, when their is no response to our questions or any serious concerns about security settings that reside in our address box ? Connecting to fire… (kàsi)

How can we trust you, when their is no response to our questions or any serious concerns about security settings that reside in our address box ? Connecting to firefox for any logical help or honest dialogue is almost impossible. I don't feel secure using firefox simply because no one ever responds or seems to care about web security...Should we continue to use https://www. and if not why ...and how does firefox protect us ? No help. No explanations. Is it time to look at a more secure browser that responds to security issues ?

Asked by RJK7 2 àwọn ọjọ́ tó kọjá