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
Newbie
Newbie
Posts: 6
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: 746
Joined: 2018-10-28, 19:56
Location: Georgia
Contact:

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.
"There are two sentences inscribed upon the Ancient oracle... 'Know thyself' and 'Nothing too much'; and upon these all other precepts depend." -- Plutarch

vannilla
Board Warrior
Board Warrior
Posts: 1941
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: 3990
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 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Post Reply