[problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

[problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-04, 13:03

OS: Puppy Linux
PM Version: 33.0.0
64-bit browser
I'm using the extension "Double Click Closes Tab", and it's set to close the tab by a Middle-Click anywhere on the page (other than on links). Lately it started to close the tab - even when I click on the Scrollbar, no matter where; which it never did. The reason for Middle-Clicking on the Scrollbar - is to get all the way to the top\bottom in 1 click, instead of clicking many times. I disabled all the rest of the extensions - and it still does this.
So maybe something changed in one of the latest versions?

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by moonbat » 2024-02-07, 00:49

Something may well have changed, but it is the addon author's job to keep up with the browser, not the other way round. Contact the author or look for an alternative on the Pale Moon addons site. Goes without saying that don't even bother looking at Firefox addons because those are all web extensions that won't work with Pale Moon.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-07, 10:37

The extension is from 2012, and doesn't appear in the author's website.
I was hoping that knowing what changed that causes it ― will enable me to find a personal solution. So I would still like to know that.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35651
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by Moonchild » 2024-02-07, 11:52

Well our click handling changed, we're more standards compliant now no longer dispatching click() events on non-primary buttons. so the extension needs to probably be updated for that.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-07, 16:54

@moonchild - OK, thanks. I don't know what that means exactly, as a non-technical person; but maybe someone will have an idea what to do. The extension is only in the Classic Add-ons Archive ― so probably nobody's gonna update it. I'll try to ask the author.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35651
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by Moonchild » 2024-02-07, 17:04

MrAccident wrote:
2024-02-07, 16:54
The extension is only in the Classic Add-ons Archive ― so probably nobody's gonna update it. I'll try to ask the author.
Yeah can't really do anything about it unless someone picks up the torch to update/maintain it. It's simply not always possible to keep using old Firefox extensions.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-07, 21:43

Moonchild wrote:
2024-02-07, 17:04
Yeah can't really do anything about it unless someone picks up the torch to update/maintain it. It's simply not always possible to keep using old Firefox extensions.
Yeah, I know. But it's strange to me that no one does ― cause this is one of the most useful extensions for me. Maybe I'll just switch to double-click to close the tab.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 940
Joined: 2021-01-26, 11:18

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by Kris_88 » 2024-02-07, 22:52

MrAccident wrote:
2024-02-07, 21:43
this is one of the most useful extensions for me.
Post it somewhere and I'll look at it at my leisure.

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-09, 08:07

Kris_88 wrote:
2024-02-07, 22:52
Post it somewhere and I'll look at it at my leisure.
What do you mean "Post it somewhere"? The extension? The XPI file?

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 940
Joined: 2021-01-26, 11:18

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by Kris_88 » 2024-02-09, 09:16

The XPI file.

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-09, 19:04

Here.
Thanks.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 940
Joined: 2021-01-26, 11:18

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by Kris_88 » 2024-02-09, 22:01

Original overlay.js :

Code: Select all

      setClick: function(e)
      {
        this.getPref();
Patched:

Code: Select all

      setClick: function(e)
      {
        if(e.target.tagName && e.target.tagName.slice(0, 4) == 'xul:') return;
        this.getPref();

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-11, 05:41

I extracted the content of the XPI file, made the change, but how to put it into an XPI file again?

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1537
Joined: 2018-10-28, 19:56
Location: Georgia

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by athenian200 » 2024-02-11, 05:53

MrAccident wrote:
2024-02-11, 05:41
I extracted the content of the XPI file, made the change, but how to put it into an XPI file again?
Try putting it into a .zip file and then changing the extension to .xpi.

I'm pretty sure .xpi files are just .zip files in disguise.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-11, 12:52

athenian200 wrote:
2024-02-11, 05:53
Try putting it into a .zip file and then changing the extension to .xpi.
It says "This add-on could not be installed because it appears to be corrupt."

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1537
Joined: 2018-10-28, 19:56
Location: Georgia

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by athenian200 » 2024-02-11, 14:21

MrAccident wrote:
2024-02-11, 12:52
It says "This add-on could not be installed because it appears to be corrupt."
Ugh. It's been too long since I messed with this. I do seem to remember something stupid about the way Mozilla designed the .xpi files that makes it not work if you just put them in a normal .zip file. :(

I remember now that you can't just use a normal .zip file, but I also don't remember what does work.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 940
Joined: 2021-01-26, 11:18

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by Kris_88 » 2024-02-11, 14:36

In Windows this works using the built-in zip.
I don’t know how to do this in Puppy Linux.

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-11, 15:02

I'll ask in Puppy forum.

MrAccident
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2017-11-19, 19:34

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by MrAccident » 2024-02-11, 15:45

🤦 I just opened the original XPI file with Xarchiver, deleted the old file, and replaced it with the modified.
Thanks Kris_88!
I contacted JustOff to add this version; don't know if he will. But here it is anyway.

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1537
Joined: 2018-10-28, 19:56
Location: Georgia

Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab

Unread post by athenian200 » 2024-02-11, 16:56

MrAccident wrote:
2024-02-11, 15:45
🤦 I just opened the original XPI file with Xarchiver, deleted the old file, and replaced it with the modified.
That was the trick! Now I remember. You have to replace the file inside the original XPI, not create a new XPI.

You got it, dude! :thumbup:
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind