[problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab
Moderators: FranklinDM, Lootyhoof
-
- Apollo supporter
- Posts: 44
- Joined: 2017-11-19, 19:34
[problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab
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?
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?
-
- Knows the dark side
- Posts: 4983
- Joined: 2015-12-09, 15:45
Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab
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."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- 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
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.
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.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab
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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- 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
@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.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: [problem] With Middle-Click closes tab extension - clicking on the scrollbar also closes tab
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.MrAccident wrote: ↑2024-02-07, 16:54The extension is only in the Classic Add-ons Archive ― so probably nobody's gonna update it. I'll try to ask the author.
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- 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
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.
-
- 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
Post it somewhere and I'll look at it at my leisure.
-
- Apollo supporter
- Posts: 44
- Joined: 2017-11-19, 19:34
-
- Keeps coming back
- Posts: 940
- Joined: 2021-01-26, 11:18
-
- Apollo supporter
- Posts: 44
- Joined: 2017-11-19, 19:34
-
- 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
Original overlay.js :
Patched:
Code: Select all
setClick: function(e)
{
this.getPref();
Code: Select all
setClick: function(e)
{
if(e.target.tagName && e.target.tagName.slice(0, 4) == 'xul:') return;
this.getPref();
-
- 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
I extracted the content of the XPI file, made the change, but how to put it into an XPI file again?
-
- 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
Try putting it into a .zip file and then changing the extension to .xpi.MrAccident wrote: ↑2024-02-11, 05:41I extracted the content of the XPI file, made the change, but how to put it into an XPI file again?
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
-
- 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
It says "This add-on could not be installed because it appears to be corrupt."athenian200 wrote: ↑2024-02-11, 05:53Try putting it into a .zip file and then changing the extension to .xpi.
-
- 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
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.MrAccident wrote: ↑2024-02-11, 12:52It says "This add-on could not be installed because it appears to be corrupt."
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
-
- 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
In Windows this works using the built-in zip.
I don’t know how to do this in Puppy Linux.
I don’t know how to do this in Puppy Linux.
-
- 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
I'll ask in Puppy forum.
-
- 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
🤦 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.
Thanks Kris_88!
I contacted JustOff to add this version; don't know if he will. But here it is anyway.
-
- 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
That was the trick! Now I remember. You have to replace the file inside the original XPI, not create a new XPI.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.
You got it, dude!
"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