Porting Linkificator to Pale Moon
Moderators: FranklinDM, Lootyhoof
Porting Linkificator to Pale Moon
Linkificator works on Basilisk, but doesn't work on Pale Moon. Where to start porting it to the pre-Australis UI?
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Porting Linkificator to Pale Moon
Unzip the XPI, read the code until you understand how it works and how it plugs into the UI, then read the XUL documentation (what little there is) on MDN and start hacking away.
-
- Board Warrior
- Posts: 1325
- Joined: 2015-09-08, 22:54
- Location: 127.0.0.1
Re: Porting Linkificator to Pale Moon
Which version are you referring to? 2.3.2 appears to be the last version that worked pre-Australis, and appears to be available from Classic Add-ons Archive, though I haven't verified to see if it's working. (The source code is also up on GitHub.) I would probably do the following:
1) Try version 2.3.2 on a clean profile.
2) Identify any bugs or issues, if any.
3) Identify any features, if any, you wish to backport from the later WebExtension-based versions.
After that you can start exploring specific details.
If 2.3.2 works as-is without any issues on Pale Moon, then forking the extension and specifically targeting are relatively simple affairs.
1) Try version 2.3.2 on a clean profile.
2) Identify any bugs or issues, if any.
3) Identify any features, if any, you wish to backport from the later WebExtension-based versions.
After that you can start exploring specific details.
If 2.3.2 works as-is without any issues on Pale Moon, then forking the extension and specifically targeting are relatively simple affairs.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story
Re: Porting Linkificator to Pale Moon
The problem with this add-on is that its older versions are based on an unsupported version of Add-ons SDK, while the new ones are deeply integrated with Australis. I'm afraid it will be easier to rewrite it from scratch.
-
- Board Warrior
- Posts: 1651
- Joined: 2018-06-08, 17:02
Re: Porting Linkificator to Pale Moon
Off-topic:
Not to dissuade you from getting Linificator to work, but if you don't necessarily need something that makes "hot links", but can deal with selecting a textual link & being able to open it, Fetch Text URL should work, caa:addon/fetch-text-url-fix-version.
Not to dissuade you from getting Linificator to work, but if you don't necessarily need something that makes "hot links", but can deal with selecting a textual link & being able to open it, Fetch Text URL should work, caa:addon/fetch-text-url-fix-version.
Re: Porting Linkificator to Pale Moon
What is ShortcutUtils.jsm? Is it related to Australis? I didn't find anything about it on MDN.
Re: Porting Linkificator to Pale Moon
Looks like something to abstract away shortcut keys so it easier to type/remember instead of the full l10n string. Looks like it was created specifically as a reusable Mozilla Javascript Module split out from DevTools for use elsewhere.
Doesn't seem expressly related to Australis technology but of course once they created the jsm it was used in Australis.
See:
bug #927605
http://xref.palemoon.org/moonchild-central/source/platform/toolkit/modules/ShortcutUtils.jsm
http://xref.palemoon.org/moonchild-central/search?string=ShortcutUtils
Doesn't seem expressly related to Australis technology but of course once they created the jsm it was used in Australis.
See:
bug #927605
http://xref.palemoon.org/moonchild-central/source/platform/toolkit/modules/ShortcutUtils.jsm
http://xref.palemoon.org/moonchild-central/search?string=ShortcutUtils
Re: Porting Linkificator to Pale Moon
I find it weird that the extension doesn't even modify webpages on Pale Moon. Is this "normal" for extensions that only target the Australis UI?
Re: Porting Linkificator to Pale Moon
It is expected that extensions that fail to init do not work at all
-
- Knows the dark side
- Posts: 4983
- Joined: 2015-12-09, 15:45
Re: Porting Linkificator to Pale Moon
You could try Linkification from CAA instead. It's a regular overlay extension, not Jetpack.
"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