Ky sajt do të funksionojë me kufizime, teksa bëjmë mirëmbajtjen e tij për të përmirësuar punën tuaj. Nëse një artikull nuk e zgjidh problemin tuaj dhe dëshironi të bëni një pyetje, kemi bashkësinë tonë të asistencës, e gatshme për t’ju ndihmuar, te @FirefoxSupport në Twitter dhe/r/firefox në Reddit.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

Close current tab by pressing window close button?

more options

I had Fast Close Tabs addon for Firefox 56 but it does not work in newer FF versions. The addon changed FF's window close button behaviour so that when pressing the window close button only the current tab was closed. This was very convenient and fast way to close a tab because it did not require careful mouse aiming (when window is maximized) or keyboard shortcut. Just move mouse pointer to top right corner of the screen and click.

My understanding is that it is not possible to do similar addons anymore. But I was wondering is it possible to get similar behaviour by using firefox autoconfig file?

There are two events that I have found: - quit-application-requested - browser-lastwindow-close-requested

I don't know which one is the correct one and how to change it's behaviour.

I guess I must use Services.obs.removeObserver method but no idea how.

I had Fast Close Tabs addon for Firefox 56 but it does not work in newer FF versions. The addon changed FF's window close button behaviour so that when pressing the window close button only the current tab was closed. This was very convenient and fast way to close a tab because it did not require careful mouse aiming (when window is maximized) or keyboard shortcut. Just move mouse pointer to top right corner of the screen and click. My understanding is that it is not possible to do similar addons anymore. But I was wondering is it possible to get similar behaviour by using firefox autoconfig file? There are two events that I have found: - quit-application-requested - browser-lastwindow-close-requested I don't know which one is the correct one and how to change it's behaviour. I guess I must use Services.obs.removeObserver method but no idea how.

Krejt Përgjigjet (2)

more options

This works on my Firefox v93: Mouse to the tab bar and double-click on the tab you want to close.

more options

As you may know, an Autoconfig file can be used to run code of your choosing, but there are some risks involved. Here is my general article on the topic: https://www.userchrome.org/what-is-userchrome-js.html

This forum doesn't officially support startup scripts that require removing the protective sandbox, but you can get help on r/FirefoxCSS on Reddit.