I've been thinking about building a very simple extension...
Moderators: FranklinDM, Lootyhoof
I've been thinking about building a very simple extension...
Moderator note: Split topic
But I've been thinking about building a very simple extension (from scratch, or as near as is practical) to learn that side of things.
Where would I go for a quick guide or tutorial for creating a Pale Moon extension from scratch in the most preferred (by the PM team) way?
(For an idea of what this extension would accomplish, see this post of mine from 2016: viewtopic.php?f=5&t=11569&p=81497#p81497)
If no one wants to point me in the right direction, I'll search myself and eventually figure it out.
But I've been thinking about building a very simple extension (from scratch, or as near as is practical) to learn that side of things.
Where would I go for a quick guide or tutorial for creating a Pale Moon extension from scratch in the most preferred (by the PM team) way?
(For an idea of what this extension would accomplish, see this post of mine from 2016: viewtopic.php?f=5&t=11569&p=81497#p81497)
If no one wants to point me in the right direction, I'll search myself and eventually figure it out.
Re: UXP development: it doesn't magically happen.
To answer your most important question: Other extensions as well as the structure of how the Bookmarks menu is constructed. I could likely do it now but it isn't as simple as any other menu item. You would be served to start simpler than that.
Re: UXP development: it doesn't magically happen.
XUL School Tutorial and XUL Tutorial should get you started, from RealityRipple's backup of MDN. The former takes you through a 'hello world' extension as well.
"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
Re: UXP development: it doesn't magically happen.
If you are saying this, I assume it will be well outside something I want to tackle any time soon.New Tobin Paradigm wrote: ↑2021-07-26, 02:59I could likely do it now but it isn't as simple as any other menu item. You would be served to start simpler than that.
I've had one more extension idea. Do you think this would be a better place to start?
The idea would be to auto-click (or similar) the YouTube prompt that comes up asking if you (the user) are still watching.
Does that sound a lot easier than conditionally cleaning up the bookmarks menu?
Thank you moonbat. I assume these would direct me how to built extensions the current preferred way for Pale Moon? It's not going to get me into Jetpack or anything similar and unloved, right? Just checking.moonbat wrote: ↑2021-07-26, 08:52XUL School Tutorial and XUL Tutorial should get you started, from RealityRipple's backup of MDN. The former takes you through a 'hello world' extension as well.
Edit: I'm on Linux often. Should I check out Sidecar, or work on being proficient without those types of tools? viewtopic.php?f=46&t=26886
Edit 2:
I hear that loud and clear.
Re: UXP development: it doesn't magically happen.
So a userscript that already exists and thousands already use. Perhaps this line of discussion should be split off into another topic.
Re: UXP development: it doesn't magically happen.
This had nothing to do with platform development. How did we end up on extensions again? Seriously people, get your topics separated and categorised.
(topic split)
(topic split)
"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
Re: I've been thinking about building a very simple extension...
As far as I'm concerned you can do whatever you want, that Q&A in particular is really to make sure people unsure of how to proceed don't end up messing things up without realizing it.
If you follow the tutorial at XUL school you can probably use Sidecar without too many issues, maybe just the few idiosyncrasies inherent of the tool, but that's it.
-
- Moon Magic practitioner
- Posts: 2986
- Joined: 2015-09-26, 04:51
- Location: U.S.
Re: I've been thinking about building a very simple extension...
Concerning this particular idea...BenFenner wrote: ↑2021-07-26, 02:05(For an idea of what this extension would accomplish, see this post of mine from 2016: viewtopic.php?f=5&t=11569&p=81497#p81497)
I'm sure you already know this, but those menu items are already easy for anyone to hide with userChrome (or a Stylem style) without a dedicated extension ...unless you had something fancier in mind than just hiding them...?
Re: I've been thinking about building a very simple extension...
Yeah, the XUL based extension technology is called overlay extensions, as opposed to the later Addon SDK and Jetpack, which are separate topics in MDN docs.
"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
Re: I've been thinking about building a very simple extension...
Jetpack IS the Add-ons SDK.
-
- Moonbather
- Posts: 58
- Joined: 2016-03-21, 12:35
Re: UXP development: it doesn't magically happen.
Why not start with forking some extensions from this list: http://developer.palemoon.org/docs/phoenix-extensions/BenFenner wrote: ↑2021-07-26, 16:57I've had one more extension idea. Do you think this would be a better place to start?
The idea would be to auto-click (or similar) the YouTube prompt that comes up asking if you (the user) are still watching.
Does that sound a lot easier than conditionally cleaning up the bookmarks menu?
You get to learn something, whilst making extensions that people asked for.
Re: I've been thinking about building a very simple extension...
I maintain the best way to start is by example. Even if it is a shitty example you still learn something. Like how NOT to make an extension later on as you learn more.
Re: UXP development: it doesn't magically happen.
Thank you! I knew it had gotten way off topic.
That's not how I prefer to learn. I prefer to begin with a blank slate, get confused, drown in misery, then slowly climb out with well-earned skill and confidence.Attronarch wrote: ↑2021-07-27, 04:02Why not start with forking some extensions from this list: http://developer.palemoon.org/docs/phoenix-extensions
I would think learning to build extensions by forking an existing one would provide some helpful insight only after I've floundered a good bit on my own without anything to lean on.
I did not know that. My plan was to conditionally hide the unwanted/unused Bookmark controlls instead of hiding them outright. But if something workable can be accomplished with userChrome then I am interested.coffeebreak wrote: ↑2021-07-26, 21:16Concerning this particular idea...BenFenner wrote: ↑2021-07-26, 02:05(For an idea of what this extension would accomplish, see this post of mine from 2016: viewtopic.php?f=5&t=11569&p=81497#p81497)
I'm sure you already know this, but those menu items are already easy for anyone to hide with userChrome (or a Stylem style) without a dedicated extension ...unless you had something fancier in mind than just hiding them...?
It would be a bit annoying to apply one-by-one to my 5+ machines (whereas an extension might be easier to mass-install) but I'll take what I can get.
That's good to know. So it should be possible, and a good learning exercise for me to put into an extension.New Tobin Paradigm wrote: ↑2021-07-26, 17:18So a userscript that already exists and thousands already use.
Re: I've been thinking about building a very simple extension...
No, because arbitrary content script injection is a rather advanced topic I have yet to master. Jetpack can do it very simply but manually through traditional methods? That is something I would kill for as a generic example.
One I have asked for multiple times and no one has bothered to produce. I know thus far that the Jetpack method internally uses the js sandbox and subscript loader features to do it like the JS Scratchpad does. It also seems GreaseMonkey uses the same mechinism as well but both are encumbered by their associated functions surrounding them so isolating ONLY what I need has been a bit of a bitch.
One I have asked for multiple times and no one has bothered to produce. I know thus far that the Jetpack method internally uses the js sandbox and subscript loader features to do it like the JS Scratchpad does. It also seems GreaseMonkey uses the same mechinism as well but both are encumbered by their associated functions surrounding them so isolating ONLY what I need has been a bit of a bitch.
Last edited by New Tobin Paradigm on 2021-07-27, 14:38, edited 1 time in total.
Re: I've been thinking about building a very simple extension...
Well then, I may also avoid that one as too difficult.
I'll stick with Hello World, go from there, and see what I can accomplish that might be interesting or of note.
If I get frisky, maybe I'll eventually try the Bookmark or YouTube auto-click thing. It sounds like the latter could be useful in other ways.
I'll stick with Hello World, go from there, and see what I can accomplish that might be interesting or of note.
If I get frisky, maybe I'll eventually try the Bookmark or YouTube auto-click thing. It sounds like the latter could be useful in other ways.
Re: I've been thinking about building a very simple extension...
You would be better served by starting with an otherwise fully functional fork of some extension. As I keep saying. Otherwise you will fail badly.
Re: I've been thinking about building a very simple extension...
There's nothing wrong in failing badly.
What's wrong is stopping after it.
What's wrong is stopping after it.
-
- Moon Magic practitioner
- Posts: 2986
- Joined: 2015-09-26, 04:51
- Location: U.S.
Re: I've been thinking about building a very simple extension...
Re: I've been thinking about building a very simple extension...
That extension (add-on? I never learned the difference) is quite interesting. I'll give it a try. I wonder how it works, and if it does what Tobin was hoping for...
(Edit: I took a look at the source, and maybe it does? I don't know, but it was easy enough to follow...)
As for forking something existing and working from there. I'm not sure why that is being suggested as the best way to learn. It seems so antithetical to me.
But if I (or someone else) were to do that, would there be a good suggestion as to which extension to fork to begin learning? Something that maybe does one small/easy thing well, or uses the basics to get the job done?
(Edit: I took a look at the source, and maybe it does? I don't know, but it was easy enough to follow...)
As for forking something existing and working from there. I'm not sure why that is being suggested as the best way to learn. It seems so antithetical to me.
But if I (or someone else) were to do that, would there be a good suggestion as to which extension to fork to begin learning? Something that maybe does one small/easy thing well, or uses the basics to get the job done?
Re: I've been thinking about building a very simple extension...
ffs just go away and stop wasing everyone's time if you aren't going to shut up, buckle down, and do something productive.