顯示下列標籤的問題:

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? I… (閱讀更多)

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">

Box A
Box B
Box C
Box D
Box E
```



    • 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.

封存 1 144

The following files couldn be attached outlook web -in firefox

the following files couldn be attached outlook web Microsoft Outlook in firefox. Its files more 1 MByte. clearing the cache did not solve the problem. Outlook web in Micr… (閱讀更多)

the following files couldn be attached outlook web Microsoft Outlook in firefox. Its files more 1 MByte. clearing the cache did not solve the problem. Outlook web in Microsoft Edge no problem with attach files Firefox version 133.0 (64-біт)

封存 5 138

Firefox not accessing Windows Hosts file

I asked this a year ago and never saw a solution (other than 'gee, it should work yet'.) I use the local Windows Hosts file to give my router a quick reference name to g… (閱讀更多)

I asked this a year ago and never saw a solution (other than 'gee, it should work yet'.) I use the local Windows Hosts file to give my router a quick reference name to get into it. That too has worked for years but began to fail last year. Inconvenient. The best I could track this down, it has something to do with forced DNS lookups and skipping the old Hosts file. If so, any work around to get my system simplicity back? Attached is what I see on each attempt.

I tried various settings for DOH and nothing works. I can reference the Hosts file in a Windows Cmd Prompt and it resolves just fine. Something is screwy in Firefox for some time now and I'd like to know what.

封存 9 135

Unable to change downloads location after disconnecting Dropbox app on macOS 15.1.1

Firefox on my 2018 MacBook Pro started having issues downloading all file types after I disconnected Dropbox sync and backup. Each time I try to download a file, a failed… (閱讀更多)

Firefox on my 2018 MacBook Pro started having issues downloading all file types after I disconnected Dropbox sync and backup. Each time I try to download a file, a failed message is displayed below the file name and type. The browser was using the downloads folder that was synced with Dropbox. After disconnecting Dropbox, I tried changing the downloads location, but the "Choose" button does not display a window. The result is the same whether the Always ask you where to save files is checked or not.

I have gone through the following steps trying to resolve this issue with no success.

  1. I have reset/cleared any configuration setting found using about:config and browser.download.
  2. I have launched Firefox in troubleshoot mode and tested downloads with no resolution.
  3. I have uninstalled Firefox and installed a fresh copy from mozilla.org with no resolution.
  4. I have set the downloads folder in Safari, but this did not provide a resolution. Downloads work as expected in Brave and Safari. The current downloads location is the Downloads directory on my iCloud Drive.

The second screenshot with the error attached in still referencing the Dropbox-connected Downloads folder. No other browsers are using this folder and the Dropbox app has been completely removed from my laptop.

I use Firefox for web development and need to be able to download various files throughout the day, so this has become very frustrating.

Any help is greatly appreciated.

Cheers,

已解決 封存 2 133

fire fox after fiber

I added fiber to my internet, since then my fire fox, which is my main browser, will not let me pay my bills on certain credit card sites, but i am able to pay these card… (閱讀更多)

I added fiber to my internet, since then my fire fox, which is my main browser, will not let me pay my bills on certain credit card sites, but i am able to pay these cards on chrome. Why!!!

封存 1 132

Trouble with my business website log in

I use the website MassageBook.com for my business scheduling and communications. Yesterday, everything worked fine. Today, for some reason, I clicked to log in through F… (閱讀更多)

I use the website MassageBook.com for my business scheduling and communications.

Yesterday, everything worked fine. Today, for some reason, I clicked to log in through Firefox and it got stuck in a loop, returning to the log in page but never actually logging in. I contacted MassageBook and the suggested using Google Chrome to log in. This worked perfectly!

My preferred browser is Firefox, but it's not working for my most used website! I would appreciate this being looked into and corrected ASAP!

Pam Reynolds

已解決 封存 1 131

severe performance issues

Hi, I have been using Mozilla for decades. In the last few weeks, the browser is constantly crashing. I heard there were some large scale denial of service attacts on M… (閱讀更多)

Hi,

I have been using Mozilla for decades. In the last few weeks, the browser is constantly crashing. I heard there were some large scale denial of service attacts on Mozilla and I feel like I am seeing the effects. My browser is upto date so that isn't the issue. Is there anything I can do? If it doesn't get better soon I will have to switch to Chrome or worse :-( YUK! I love you guys and really hope there is a solution.

封存 1 131

Audio stops working when switching/disconnecting audio device until I reload tab

First of all I'm doing my testing in: AMD Ryzen 7 7730u Windows 11 24H2 Firefox 133.0.3 Haylou GT1 Pro Bluetooth earbuds I'm using jellyfin on web. And I listen to music … (閱讀更多)

First of all I'm doing my testing in:

AMD Ryzen 7 7730u Windows 11 24H2 Firefox 133.0.3 Haylou GT1 Pro Bluetooth earbuds

I'm using jellyfin on web. And I listen to music on it, the problem I'm facing is... The moment I disconnect and reconnect my earbuds, the audio stops, the tab says "PLAYING" but no audio is played, I can press pause and play an infinite number of times but does not work UNTIL I reload the tab, then the audio comes back. Wouldn't be a big deal except for the fact everytime I have to reload, jellyfin does not save the current playlist so I have to create it again.

I tested this on the latest version of Microsoft Edge and it works with no problem there, I disconnect earbuds, audio stops, reconnect them and audio resumes, without even having to press play. The problem is something with firefox and the way it selects audio devices I guess?

I send a screenshot of firefox with the tab "PLAYING" but not actually doing it, and I send a logging file that I created using about:logging and the preset "Media playback", starting when I play media, disconnect bluetooth device, reconnect and can't hear anything

Logging file: https://pastebin.com/8CXn7bkv

If you need more info, please tell me. Greetings!

封存 1 128

Mozilla Extended Support Browser

Like probably a Lot of you I don't support the unethical So-called "Forced-obsolescence" and am not planning to "upgrade" Microsoft every 18 months or so for the next 90 … (閱讀更多)

Like probably a Lot of you I don't support the unethical So-called "Forced-obsolescence" and am not planning to "upgrade" Microsoft every 18 months or so for the next 90 years on each on Every single family Computer and give in to their Scare tactics for financial, environmental and Ethical reasons.

I am currently running Firefox "Extended Support," or ESR, I think it's called. Was wondering, If I ever **DO** decide to upgrade our bloatware Spyware operating system(s), basically if they break enough Apps like Apple Likes to do to force an upgrade, how difficult or easy would it be to Migrate from ESR to the latest regular version of Mozilla/Firefox...with all my Settings, etc. still in place?

已解決 封存 15 127

Trying to Restore old Firefox

Yesterday, something went wrong in my Windows 11 desktop (I have a virus program installed). One of the casualties involved corrupting Firefox (it would not open). I rein… (閱讀更多)

Yesterday, something went wrong in my Windows 11 desktop (I have a virus program installed). One of the casualties involved corrupting Firefox (it would not open). I reinstalled Firefox without removing the old version. Now I have a new installation but all my bookmarks and other data are missing. There is a folder on my desktop labelled as "Old Firefox data". It is possible to restore Firefox to a previous time (a day ago)? Thank you.

封存 2 127

Copying entries in history: WYSINWYG

There is (IMHO) some missing functionality / unwanted feature or call it what you like (bug?). History -> Manage History select e.g. Last 7 days, right click on Name a… (閱讀更多)

There is (IMHO) some missing functionality / unwanted feature or call it what you like (bug?).

History -> Manage History

select e.g. Last 7 days, right click on Name and select at least two attributes (you can choose from: Tags, Location,Most Recent Visit, Added and Last Modified)

Select the first entry of the list, all displayed fields are selected/highlighted.

Copy (either with the menu or with Ctrl-C) and paste it in your favourite text editor.

Why is only the URL copied? Other fields were also highlighted. Why are they not included?

This is WYSINWYG (what you see is not what you get).

It is possible to export bookmarks as an html file, so why is this not possible with history?

OK, it is possible to query the sqlite3 database directly to get some history info but it's a bit cumbersome.

To do so,

  copy the sqlite (places.sqlite) database to some safe place then open the database (with 'sqlite3 places.sqlite')
  get the history info you are interested in with a sqlite query,
  e.g. select title,visit_count,site_name,url,description,last_visit_date from moz_places where url like '%support%';

But there is no simple (AFAIK) way to convert 'last_visit_date' (an integer) to something human readable.

So either include the whole selection when something is copied (WYSIWYG) or provide export history as an html file.


ps: why is there on option 'other' in the list of 'topics' ? pps: I already posted this comment but it got lost somehow

封存 2 126

Diminishing performance (increasing lag) the longer Firefox 133 is open

I believe this problem began in 133. I've noticed that if FF is open for a few hours, it starts to develop a very noticeable input lag. For example, if I'm watching a You… (閱讀更多)

I believe this problem began in 133. I've noticed that if FF is open for a few hours, it starts to develop a very noticeable input lag. For example, if I'm watching a YouTube video and hit an arrow key to advance the video, there will be a couple of seconds before the browser registers the key press. It behaves like a high CPU issue but I do not detect high CPU usage when this is happening. Restarting the browser resolves the issue for a few hours.

This is happening on Windows 11 as well as on a Mac running Sonoma.

封存 5 126

Firefox hangs when merchant page transfers to Paypal

Paypal hangs when transferred from vendor site to complete purchase. Relaunching Firefox in troubleshooting mode resolves issue. Also works with Safari. What's wrong, wha… (閱讀更多)

Paypal hangs when transferred from vendor site to complete purchase. Relaunching Firefox in troubleshooting mode resolves issue. Also works with Safari. What's wrong, what needs to be changed?

封存 3 125

daten einfach gelöscht wiederherstellen

hallo ich brauche bitte dringende hilfe undzwar habe ich mein pc formatiert und habe mich wie gewohnt im firefox browser angemeldet und wollte meine daten synchronisieren… (閱讀更多)

hallo ich brauche bitte dringende hilfe undzwar habe ich mein pc formatiert und habe mich wie gewohnt im firefox browser angemeldet und wollte meine daten synchronisieren und nun habe ich gemerkt das einfach alles weg ist meine passwörter lesezeichen usw

mein account ist mit ein authenticator gesichert ich bitte euch ich brauche meine daten wieder welche möglichkeit gibt es da

danke

封存 2 124

Middle Mouse click on bookmarks

The setting "Open links in tabs instead of new windows" and middlemouse.openNewWindow in about:config will not fix this issue: when using middle mouse on the bookmarks in… (閱讀更多)

The setting "Open links in tabs instead of new windows" and middlemouse.openNewWindow in about:config will not fix this issue: when using middle mouse on the bookmarks in the bookmarks bar, it will automatically switch the foreground tab to the new opened bookmark which is not great. The combination of the previously 2 mentioned settings will allow hyperlinks and such to work fine, but not on bookmarks. this makes it tedious when I wanna just have something ready in the background.

封存 1 123

Mac desktop firefox does not display "see more" link in LinkedIn profiles

Hello, I have a Mac desktop running Seqouia 15.1.1, and I'm using Firefox, primarily. Inside LinkedIn, the "see more" link is missing in people's profile sections. I can… (閱讀更多)

Hello,

I have a Mac desktop running Seqouia 15.1.1, and I'm using Firefox, primarily.

Inside LinkedIn, the "see more" link is missing in people's profile sections. I can;t expand any of these sections to read them in full.

They are present in Chrome. They are present on my iPhone.

I've reset everything I can think of but nothing impacts it. Also, this is a fairly new problem. So, something updated that caused this but Idk what.

The attached images give examples.

1st image (FF): Where the "..." is, a "see more" text link should also appear. 2nd image (CH): "See more" is present.

已解決 封存 2 122

Disabled extension are not disabled. Javascript stopped working.

With Firefox's latest update... 1. Javascript no longer works on pages it absolutely must work. The webpage for my security cameras not longer allow me to operate the c… (閱讀更多)

With Firefox's latest update...

1. Javascript no longer works on pages it absolutely must work. The webpage for my security cameras not longer allow me to operate the cameras. When I click pan/tilt/zoom button all I get is a little message that says "Jacascript" at the bottom right corner where there should be a url. I've never actually paid attention on the security cams page but the url is there on other websites. I have to have this functionality. How do I re-enable Javascript for at least this page?

2. Deactivated extensions are not actually deactivated. To trouble shoot the first problem I disabled NoScript and ADblock Plus to see if they were interfering. I closed and reopened Firefox, and even restarted my PC. Firefox shows the extension to be disabled but they are in fact still active and working. Something is extremely broken in Firefox's extension manager. Is there anyway to actually disable these extensions without removing them?

Thanks

已解決 封存 2 121