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… (xem thêm)

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?)

Được hỏi bởi ash 14 giờ trước

firefox won't go to any sites!!

Concurrent with the most recent automatic windows update (may or may not be the problem), Firefox with duck-duck-go will not go to almost any site. All I get is a spinni… (xem thêm)

Concurrent with the most recent automatic windows update (may or may not be the problem), Firefox with duck-duck-go will not go to almost any site. All I get is a spinning icon or a blank page, not even any error messages. This was even true trying to go to this page until I restarted in trouble shooting mode. Until I can get Firefox working again I have been using Chrome with duck-duck-go. Note any search, i.e. 'hotels in Italy' or even 'MSN' do the same: spinning icon or blank page!! Any help would be appreciated. Also I noticed that my bookmarks were missing and there was no bookmarks drop-down on my tools line. I have run malware bytes and it showed clean, same with CCleaner. I have re-installed Firefox; no difference. Please help. and also, any way to find and replace my extensive bookmarks list? I have reduced my privacy to near zero and turned off firewalls and all limits I could find while testing for that. That did not change anything.

Được hỏi bởi onefoozer 1 tuần trước

Lần cuối trả lời bởi onefoozer 17 giờ trước

Hanging problem

My laptop lost power mid-session and since then Firefox hangs after opening and becomes unresponsive. Can’t do anything on it. Troubleshoot mode does the same. Booted up … (xem thêm)

My laptop lost power mid-session and since then Firefox hangs after opening and becomes unresponsive. Can’t do anything on it. Troubleshoot mode does the same. Booted up my computer in safe mode, no change.

I’m guessing a reinstall would fix it but I had a bunch of tabs open that I’m really trying not to lose. And I didn’t have an account to save them, I’ll rectify that after this.

Được hỏi bởi jasonthe123 18 giờ trước

4K YouTube Videos Stuttering One One Specific Channel

So I'm having issues playing 4K videos fully on one YouTube channel: https://www.youtube.com/@ClearviewDriving For some reason anything above 1080p gives me bad stutteri… (xem thêm)

So I'm having issues playing 4K videos fully on one YouTube channel: https://www.youtube.com/@ClearviewDriving

For some reason anything above 1080p gives me bad stuttering but on other channels videos don't stutter or freeze when playing 1440p or 4K quality.

Firefox is updated, I don't use Extensions other than Ad Blocker and I have that off on YouTube anyway. Seems strange that it'd only affect one specific channel.

I have a very good gaming PC too so the hardware isn't the issue.

Được hỏi bởi Mattt_PC 5 ngày trước

Lần cuối trả lời bởi Mattt_PC 20 giờ trước

setting up Firefox on reset computer

I reset a computer, deleting all my files. I want to use, as I do elsewhere, Firefox as my browser. And though I signed into Firefox using my old credentials, none of my … (xem thêm)

I reset a computer, deleting all my files. I want to use, as I do elsewhere, Firefox as my browser. And though I signed into Firefox using my old credentials, none of my bookmarks are there. How do I complete this setup?

Được hỏi bởi Bobg 2 ngày trước

Lần cuối trả lời bởi Bobg 20 giờ trước

recaptcha problem

Until yesterday everything was fine. I was able to complete recaptcha. But when I tried searching something today, I couldn't do it because of the recaptcha. It was stuck… (xem thêm)

Until yesterday everything was fine. I was able to complete recaptcha. But when I tried searching something today, I couldn't do it because of the recaptcha. It was stuck on infinite loading. Every website I visited the problem was there. I tried fixing it from the tips I found in the forum here but nothing seems to work. I was frustrated. Then I tried Brave browser and it was working. Please help me fix this problem. Thank you.

Được hỏi bởi MOVIE BOSS 1 ngày trước

Lần cuối trả lời bởi MOVIE BOSS 22 giờ trước

Firefox keeps downgrading?

I'm using Firefox 124.0.2 (64 bit) on Windows, and every few days I get the error about using an older version of Firefox, with Exit or Create New Profile options. I the… (xem thêm)

I'm using Firefox 124.0.2 (64 bit) on Windows, and every few days I get the error about using an older version of Firefox, with Exit or Create New Profile options. I then run "firefox -allow-downgrade" from the command prompt and everything works fine... for a few days, when it happens all over again. This only started happening a couple of weeks ago, but it's getting really annoying. How do I stop it (short of using something like Waterfox or Brave).

Được hỏi bởi peter.dell 3 ngày trước

Lần cuối trả lời bởi peter.dell 1 ngày trước

Combining 2 Firefox accounts

I have accidentally end up with two FireFox accounts. I want to combine them, but I can't change either account to the other one because FireFox tells me that the replac… (xem thêm)

I have accidentally end up with two FireFox accounts. I want to combine them, but I can't change either account to the other one because FireFox tells me that the replacement email/account is already in use. How do I get around this?

Được hỏi bởi RJL_web1 1 ngày trước

How to force firefox to start as specific height width?

hi i just got firefox setup just as i want so dont want to reset it. yes i have used arkenfox to beef up pivacy. only problem is i assume fingerprint disabling has made… (xem thêm)

hi

i just got firefox setup just as i want so dont want to reset it. yes i have used arkenfox to beef up pivacy.

only problem is i assume fingerprint disabling has made the window size like tor browser.

is there a way via the shortcut to "c:\mozilla\firefox\firefox.exe" -height 1024 -width 1600

does not work

"c:\mozilla\firefox\firefox.exe" -height 1024 -width 1600 -P default

does not work

how do i fix this? using this method? as i would prefer to do this way

alternatively prefs.js / is there a way to do it there?

simple step by step instructions please

your time and help is appreciated.

thx

Được hỏi bởi doop23 3 ngày trước

Lần cuối trả lời bởi doop23 1 ngày trước

Videos won't play or show error sign

Everytime i try to watch a video it says it can't play or it just sits there buffering. Youtube works but only lower quality, but every other site i go on doesn't. Twitch… (xem thêm)

Everytime i try to watch a video it says it can't play or it just sits there buffering. Youtube works but only lower quality, but every other site i go on doesn't. Twitch won't load, other sites show Error Code: 102630. This is only a problem on my browser on my windows pc I have. On mobile the browser works great and has no problem showing videos so it a problem for my pc browser.. I've tried all of the steps, i've updated, i checked drm and even went into config to check there. But nothing works, it still can't load videos. I have version 125.0.3 and for me it's the latest one. I even turned off all of my add-ons to check if it works or not but nothing there either. It worked before, just now the latest two months it hasn't. What can I do in order for the videos to load? Thank you for your time.

Được hỏi bởi Banilemim 1 ngày trước

Firefox Kiosk does not appear when I log in but does when I start it manually from the GNOME x-terminal

I have Ubuntu 22.04 (on a Dell Optiplex 3000) with a minimal installation. I downloaded Firefox 125, removed the SNAP Firefox and installed this Firefox with no issue. I… (xem thêm)

I have Ubuntu 22.04 (on a Dell Optiplex 3000) with a minimal installation. I downloaded Firefox 125, removed the SNAP Firefox and installed this Firefox with no issue. I can run "firefox --kiosk" and Firefox runs in kiosk mode with no issue.

I have made some changes in the "about:config" part of Firefox. I have also made some changes to the Ubuntu keyboard shortcut list. There is only one user created on this system and I have configured Ubuntu to login this user automatically upon reboot.

However, if I setup Firefox --kiosk to start automatically (I use the gnome-session-properties application to achieve this) and then reboot, Firefox does run, but it does not appear on the screen. If I enter the "switch windows" keyboard shortcut (ALT-TAB), the Firefox kiosk appears.

So, is this something I can fix by changing the Firefox configuration, or is it an Ubuntu configuration change. If so, can anyone tell me what I should do, or have an idea how to debug this?

Được hỏi bởi srednausab 1 ngày trước

Firefox is having trouble playing multiple sounds at once.

I've had this issue ever since switching to a new laptop. This issue is specifically within Firefox (I have tested this in other browsers and programs, and the issue isn'… (xem thêm)

I've had this issue ever since switching to a new laptop. This issue is specifically within Firefox (I have tested this in other browsers and programs, and the issue isn't there. Everything else works perfectly fine!)

Essentially, whenever Firefox plays multiple sounds at the same time (for example, I use both youtube and discord in-browser) the second sound will briefly mute the other sound. (Going back to the discord-youtube example, if I am watching a youtube video and recieve a discord notification, the youtube video will pause for about half a second.) Or if a site has background audio but also plays a short audio clip when certain elements are clicked, for example, it will cause this "overlapping" issue. Again, this issue is only within Firefox.

I am using Windows 11 if that helps. I've already tried using a Firefox Refresh and peeking in about:config but I'm totally lost as to what I can try next, since I can't find any other examples of people with this issue online. Sometimes the issue briefly fixes itself but then reappears.

Được hỏi bởi wygolvillage 1 ngày trước

403 and 404 errors on firefox started 4.29.24

Starting yesterday firefox, no recent updates etc, gives a 403 error for several large corporate sites and 404 page not found for most paypal payment pages. These sites/p… (xem thêm)

Starting yesterday firefox, no recent updates etc, gives a 403 error for several large corporate sites and 404 page not found for most paypal payment pages. These sites/pages work fine with Chrome. There were no changes by by myself to my firefox installation, not any antivirus changes.

Within the last hour today everything is working properly. What is going on? jn

Được hỏi bởi buy21 1 ngày trước

OneDrive workbook problem

So I have an Excel workbook in my onedrive from MS, It was working fine on my firefox browser in my Ubuntu OS, last week it started to delete my cell's information whenev… (xem thêm)

So I have an Excel workbook in my onedrive from MS, It was working fine on my firefox browser in my Ubuntu OS, last week it started to delete my cell's information whenever I pressed the enter, tab or arrow keys, I contacted the MS support and they get me to opened the same file on a chrome browser and worked fine... I still want to use my firefox browser but this problem is very annoying, please help me sort it out!!!

Được hỏi bởi ricardocrbb 2 ngày trước

Lần cuối trả lời bởi ricardocrbb 1 ngày trước

Click shortcut for opening link in private mode

Hello, I'm looking for a way to add a shortcut, similar to: CTRL + Click = open link in new tab SHIFT + Click = open link in new window What I want it to do is open a l… (xem thêm)

Hello, I'm looking for a way to add a shortcut, similar to:

CTRL + Click = open link in new tab SHIFT + Click = open link in new window

What I want it to do is open a link in a Private mode window, to avoid having to open the right-click menu.

I came across this person asking for something similar (they specifically want the private window to not appear on top, I do not care if it gets automatically focused or not) https://support.mozilla.org/bm/questions/1317416

The only answer links to a list of "command line options" and points to the private ones. I understand how you can use these to change how the Firefox shortcut behaves, or to open Firefox in a specific way from the "Run" command, but I do not know how, or if it is even possible to apply these settings to a specific shortcut-click combination.

Được hỏi bởi deramos603 1 ngày trước

ZOOM is fouled up & can't fix it, using NoSquint Plus

Still using Firefox 78.15.0 esr (64 bit) Am I correct that the toolbar icon " - | 100% | + " is the Firefox Zoom function? I have never been able to locate a toolbar ico… (xem thêm)

Still using Firefox 78.15.0 esr (64 bit)

Am I correct that the toolbar icon " - | 100% | + " is the Firefox Zoom function? I have never been able to locate a toolbar icon for NoSquint Plus. I also have Theme & Font Size Changer, but it stopped working years ago. Anyway, working fine for many years, automatically setting the zoom on every tab to 150% so I can read it easily.

A few days ago I got into the NoSquint Plus preferences (NEVER OPEN THE HOOD !!!) , and wondered why it was set to chrome API instead of CSS API and changed it to see. That kind of broke it completely. Maybe changed other stuff trying to get it back...

At present, Firefox Default Zoom is set to 150% . NoSquint Plus is default full page 100% and default text only 150% There are no instructions telling me how these 3 settings will interact.

It seems that when I open NoSquint Plus Preferences and change the %, it works on all the tabs on that page, but not on any other page unless I open it & fiddle with it.

How do I get what I want? There is no "return to default settings" for NoSquint Plus.

Được hỏi bởi FireFoxSucks 2 ngày trước

Lần cuối trả lời bởi FireFoxSucks 2 ngày trước

Cloudflare not working on DNS over HTTPS

I'm new to firefox and would like to set cloudflare for DNS over HTTPS but there seems to be an issue. If I set it to NextDNS the connection stays active. But if I set it… (xem thêm)

I'm new to firefox and would like to set cloudflare for DNS over HTTPS but there seems to be an issue. If I set it to NextDNS the connection stays active. But if I set it to cloudflare it goes inactive with the error (NS_ERROR_NET_TIMEOUT_EXTERNAL). I tried setting a custom DNS to OpenDNS and got the same error.

I'm running Manjaro Linux if that make a difference.

Được hỏi bởi frehseaccount 2 ngày trước