Single clic on a tab to close it **SOLVED**

Discussion of features in Mozilla Firefox
Post Reply
User avatar
PhiliP190
Posts: 41
Joined: August 12th, 2015, 2:04 am

Single clic on a tab to close it **SOLVED**

Post by PhiliP190 »

Hello

I use "fly over a tab to select it" with tab mix plus.

I wich to just one click over the tab to close it.

Double click options exists but i can't find any for single one.

Could you help me please ?
Last edited by PhiliP190 on August 23rd, 2015, 10:30 pm, edited 1 time in total.
French guy.
User avatar
the-edmeister
Posts: 32249
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Re: Single clic on a tab to close it

Post by the-edmeister »

Tab Mix Plus support is over here:
http://tmp.garyr.net/forum/




.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
User avatar
PhiliP190
Posts: 41
Joined: August 12th, 2015, 2:04 am

Re: Single clic on a tab to close it

Post by PhiliP190 »

the-edmeister wrote:Tab Mix Plus support is over here:
http://tmp.garyr.net/forum/
.


Should tabmixplus only be concerned by this feature ?
French guy.
User avatar
the-edmeister
Posts: 32249
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Re: Single clic on a tab to close it

Post by the-edmeister »

Well, it isn't a standard feature in Firefox and since TabMix Plus does so many other things that Mozilla didn't include for tabs it makes sense to ask TabMix Plus support if that feature is included, too. Sorry, I have never used TabMix Plus myself so I don't know what features it has.


.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
User avatar
dfoulkes
Posts: 22525
Joined: June 28th, 2008, 10:31 pm
Location: Mesquite, Nevada

Re: Single clic on a tab to close it

Post by dfoulkes »

Note at the top of this extension some wording about....
Optionally middle click or double right click on page to close tab.

Double Click Closes Tab :: Add-ons for Firefox

Though it seems to me that by just clicking on the X of any tab and closing it would be sufficient.... but that's just me.
As you can see she's (The CAT) always alert and on the prowl for Meoware !!
User avatar
PhiliP190
Posts: 41
Joined: August 12th, 2015, 2:04 am

Re: Single clic on a tab to close it

Post by PhiliP190 »

dfoulkes wrote:Note at the top of this extension some wording about....
Optionally middle click or double right click on page to close tab.

Double Click Closes Tab :: Add-ons for Firefox

Though it seems to me that by just clicking on the X of any tab and closing it would be sufficient.... but that's just me.


i've got this one. i asked mynguyi to code 1 click, two month ago. But it was told me that it was reported...

So i'm Still looking for it.
French guy.
User avatar
PhiliP190
Posts: 41
Joined: August 12th, 2015, 2:04 am

Re: Single clic on a tab to close it

Post by PhiliP190 »

From Aris, developper of Classic Theme Restorer

http://forums.mozillazine.org/viewtopic.php?f=48&t=2827985

Aris wrote:I can offer you a user script to achieve "tab closing with on click".

- install "uc" add-on https://addons.mozilla.org/addon/uc/ or "userChromeJS" add-on http://userchromejs.mozdev.org/
- goto to your Firefox profile folder and create a subfolder \chrome\ (if not already there)
- create a new text file inside that folder
- add the following script to it

Code: Select all

document.getElementById("TabsToolbar").addEventListener("click", function CloseClick(e) {
            
   if(e.button==0 && e.target.localName == "tab"
      && e.target.localName != "toolbarbutton"
        && e.target.localName != "arrowscrollbox"
         && e.originalTarget.getAttribute("anonid") != "scrollbutton-up"
           && e.originalTarget.getAttribute("anonid") != "scrollbutton-down"
            && e.originalTarget.getAttribute("anonid") != "close-button")
   {
      BrowserCloseTabOrWindow();
   }

}, false);


- save the file as e.g. "clicktoclose.uc.js" (not as "clicktoclose.uc.js.txt")
- restart browser

--> clicking any tab should close it.
French guy.
Post Reply