How to modify extension code for personal use? Topic is solved

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

Moderators: FranklinDM, Lootyhoof

User avatar
David-RL
Moongazer
Moongazer
Posts: 10
Joined: 2021-12-24, 07:31

How to modify extension code for personal use?

Unread post by David-RL » 2022-06-24, 18:33

Is there a general tool that can be used to view an extension's code for palemoon?

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

Re: How to modify extension code for personal use?

Unread post by athenian200 » 2022-06-24, 18:35

The extensions are just .zip files with a different file extension. All you have to do is change the extension to .zip, unzip them to a directory of your choice, make changes, and then zip them back up, being sure to change the name to .xpi again.
"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

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2188
Joined: 2018-05-05, 13:29

Re: How to modify extension code for personal use?

Unread post by vannilla » 2022-06-24, 18:56

Depending on the extension you might even find the code on places like GitHub or Gitlab.
Of course modifying the code requires a certain knowledge, but if you just need to read sometimes you don't really need to unpack it.

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

Re: How to modify extension code for personal use?

Unread post by moonbat » 2022-06-25, 01:45

You can refer to archived Mozilla XUL documentation for learning about coding/fixing extensions, hosted by forum user RealityRipple.
"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

Locked