Viser spørgsmål med mærkatet: Vis alle spørgsmål

userchrome.js: how to get notified when tabs open and close?

I've recently started using the Tree Style Tab extension, and I'm finding it useful, but I'd like it if the list of tabs could be automatically hidden when only one tab i… (læs mere)

I've recently started using the Tree Style Tab extension, and I'm finding it useful, but I'd like it if the list of tabs could be automatically hidden when only one tab is open (and automatically shown when more than one tab is open).

I hoped to write an extension to do this, but opening the sidebar from an extension requires a user gesture, so I suspect I'll have to use a userchrome.js script.

From a "userchrome.js"-like environment (i.e. unsandboxed AutoConfig), I can hide and show the sidebar with `SidebarUI.hide()` and `SidebarUI.show("treestyletab_piro_sakura_ne_jp-sidebar-action")`, and I can examine the tabs open in the current window via `gBrowser.tabs`, but I can't see how to get notified when the number of tabs changes (replacing `gBrowser.tabs` with a proxy doesn't work, for example). I suppose I could just check every few seconds? That feels like a bit of a cop-out, though, and gets more and more inefficient the more windows are open.

There's an API for extensions to receive events when tabs open and close, so clearly this is possible. Where should I be looking for this functionality?

(I also don't know how I would go about unregistering an event listener (or cancelling a setInterval call!) when the window closes, assuming that's necessary to avoid leaking resources – is there an event like `chrome-document-global-created` I could listen for, but that fires during teardown of the window rather than when one is created?)

Stillet af ash for 19 timer siden

history

How to PROPERLY erase history? I mean, you erase HISTORY...click...there you go...?!?!?...but, what's happening? I erased HISTORY...ah, I erased it FROM the panel but, it… (læs mere)

How to PROPERLY erase history? I mean, you erase HISTORY...click...there you go...?!?!?...but, what's happening? I erased HISTORY...ah, I erased it FROM the panel but, it WILL remained on the list that it shows on top of the icon (sic) ...someone suggested to go on the panel, select privacy, scroll to history, pass over "Never remember history...." (?) AND then you "click"... Clear...what is the point? clear means clear means clear from EVERYWHERE...sorry about the mess I wrote but I was frustrated

Stillet af minutes2go for 12 timer siden

recaptcha

Today May 1, I noticed that any website that shows a recaptcha checkbox, including the google recaptcha demo (https://www.google.com/recaptcha/api2/demo) only shows an in… (læs mere)

Today May 1, I noticed that any website that shows a recaptcha checkbox, including the google recaptcha demo (https://www.google.com/recaptcha/api2/demo) only shows an infinite spinner in firefox v125.0.3. I've tried the same sites in chrome and edge and the recaptcha works fine. In FF, I have cleared my cache, disabled tracking protection, disabled anti-virus and tried troubleshooting mode - still get the infinite spinner. Last week, I had no problems with recaptcha.

Stillet af bill340 for 12 timer siden

Sound continues to play after pressing the back button when watching videos

Windows 10 Home 22H2 Firefox 125.0.3 For quite awhile I have had an intermittent problem when watching YouTube videos. To watch a video I right click on it and sele… (læs mere)

Windows 10 Home 22H2 Firefox 125.0.3

For quite awhile I have had an intermittent problem when watching YouTube videos. To watch a video I right click on it and select "open link in new window". If I just click on the video to watch it, the main page may reload when I click on the back arrow and some of the videos I was interested in are no longer displayed. Sometimes my touchpad doesn't recognize the right click and opens the video in the current window. After it starts playing, if I click the back arrow, the video returns to the previous page (which may be reloaded), and sometimes the audio from the video keeps playing, so I have audio for a video that is no longer visible. When this happens, if I click on another video, the audio from both are played. Today I had the same thing happen when I was streaming a TV program from the Spectrum website.

1. If I click on a YouTube video from the main page, should the main page be rebuilt when I click on the back arrow? 2. How do I resolve the audio continuing to play problem? i don't know if this is a Firefox problem but I have no idea where to start to fix it.

Stillet af taherte for 11 timer siden

Firefox Update Popup Notifications on Mac?

Recently a popup notification came up when I opened firefox on my mac. Its been awhile since I opened it and without thinking I clicked : o ~ Now I worry if it'ss le… (læs mere)

Recently a popup notification came up when I opened firefox on my mac. Its been awhile since I opened it and without thinking I clicked : o ~ Now I worry if it'ss ledgit? Does Firefox give a popup box in top right corner when it needs an update? I wasn't on any strange website or anything but I'm always concerned and dont remember seeing that before.

My firefox now says its up to date after it restarted ~ it's running 125.0.3

Any advise is appreciated.

Stillet af jason144 for 11 timer siden

Why is Firefox autofilling the address bar with URLS I've never visited?

Why is Firefox autofilling the address bar with URLS I've never visited? There is a question on this from 5 years ago, with lots of suggestions. My problem is that Firefo… (læs mere)

Why is Firefox autofilling the address bar with URLS I've never visited? There is a question on this from 5 years ago, with lots of suggestions. My problem is that Firefox is autofilling with sites that contain confidential login information.

Stillet af troppont for 3 timer siden

The pause button on the keyboard doesn't stop the video in Firefox.

When I press the pause button on my keyboard, it doesn't stop the YouTube video like it used to. I'm not sure why it stopped working. I've checked the key, and it works f… (læs mere)

When I press the pause button on my keyboard, it doesn't stop the YouTube video like it used to. I'm not sure why it stopped working. I've checked the key, and it works fine in Chrome.

Stillet af Robert Clave for 1 time siden

Can I change the date format from „month, day, year“ to „day, month, year“?

In Firefox the date format is set at „month, day, year“, but I need „day, month, year“. I tried all the solutions, I even installed Firefox - English (British) version, … (læs mere)

In Firefox the date format is set at „month, day, year“, but I need „day, month, year“.

I tried all the solutions, I even installed Firefox - English (British) version, but nothing changes.

Can you also implement an alternative, to be able to choose between the 2 options?

Thank you very much.

Stillet af Cristi Nefiru for 1 time siden

Audio interface input no longer shows in Google Meet.

My primary/default browser is Firefox on Sonoma 14.4.1, and recently I'm unable to use the inputs of my audio interface for google hangouts. The relevant output is correc… (læs mere)

My primary/default browser is Firefox on Sonoma 14.4.1, and recently I'm unable to use the inputs of my audio interface for google hangouts. The relevant output is correct, and my system audio would be the same.

Stillet af Scott Simon for 8 minutter siden

Firefox 125.0.3 block submit with Google Recaptcha

After updating Firefox to Firefox 125.0.3, Google ReCaptcha2 stopped working on my sites (I use the invisible version). Then I checked the version from the official websi… (læs mere)

After updating Firefox to Firefox 125.0.3, Google ReCaptcha2 stopped working on my sites (I use the invisible version). Then I checked the version from the official website and it doesn’t work either.

I read about self = this on stackoverflow, but this also does not help on my sites. After clicking, nothing happens, and there is an error in the console.

Has anyone encountered this?

The same behavior here https://www.google.com/recaptcha/api2/demo, an error is displayed and loading... loading... loading.

Error in console is like: UncaughtObject { stack: "z<@https://www.gstatic.com/recaptcha/releases/WQcDpAcHn0sjM6ZiVkU8JwNH/recaptcha__ru.js:470:201\nH<@https://www.gstatic.com/recaptcha/releases/WQcDpAcHn0sjM6ZiVkU8JwNH/recaptcha__ru.js:258:...

from https://www.gstatic.com/recaptcha/releases/WQcDpAcHn0sjM6ZiVkU8JwNH/recaptcha__ru.js line 448:1

Tested on absolutely clean Firefox without plugins, with security turned off, without cookies and account.

When i start browsing from Holland IP via VPN the problem are solving. In Chrome, Edge ReCaptcha2 working fine.

Stillet af Федор for 7 minutter siden