Greasemonkey Newspaper RSS Renderer

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

Moderators: FranklinDM, Lootyhoof

User avatar
Schimon
Apollo supporter
Apollo supporter
Posts: 41
Joined: 2024-12-09, 14:01

Greasemonkey Newspaper RSS Renderer

Post by Schimon » 2025-11-04, 20:03

Greetings.

I have made an RSS renderer which is solely made of ECMAScript (i.e. JavaScript).

It was originally made with XSLT, yet due tothe malformed XSLTProcessor of one browser, it is now utilizing DOMParser to parse syndicated documents.

https://greasyfork.org/en/scripts/46593 ... eed-reader

A friend has reported that it does not work with Pale Moon.

Please help me to solve this issue, because Pale Moon is more important.

Schimon

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38484
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Greasemonkey Newspaper RSS Renderer

Post by Moonchild » 2025-11-04, 21:25

Schimon wrote:
2025-11-04, 20:03
It was originally made with XSLT, yet due tothe malformed XSLTProcessor of one browser, it is now utilizing DOMParser to parse syndicated documents.
I'm not sure why this was done - XSLT is far superior for this kind of task (and orders of magnitude faster than going through DOM+JS). Which "one browser" was this that made for the rewrite, instead of just declaring that one browser as "not supported"?
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1078
Joined: 2020-11-03, 06:47
Location: Philippines

Re: Greasemonkey Newspaper RSS Renderer

Post by jobbautista9 » 2025-11-05, 01:30

XSLT is definitely better for transforming XML, but does XSLT 1.0 also support transforming JSON (which the userscript also handles)?
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38484
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Greasemonkey Newspaper RSS Renderer

Post by Moonchild » 2025-11-05, 07:16

Not sure about 1.0 as it doesn't have a native function for it unlike 3.0 but since json is native for js you shouldn't need it. You can just convert it to XML in js then feed it to XSLT for transformation, basically doing the read-in conversion step yourself. After all the extension is in js.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite