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
Greasemonkey Newspaper RSS Renderer
Moderators: FranklinDM, Lootyhoof
-
Schimon
- Apollo supporter

- Posts: 41
- Joined: 2024-12-09, 14:01
-
Moonchild
- Pale Moon guru

- Posts: 38484
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Greasemonkey Newspaper RSS Renderer
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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
jobbautista9
- Board Warrior

- Posts: 1078
- Joined: 2020-11-03, 06:47
- Location: Philippines
Re: Greasemonkey Newspaper RSS Renderer
XSLT is definitely better for transforming XML, but does XSLT 1.0 also support transforming JSON (which the userscript also handles)?

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.
-
Moonchild
- Pale Moon guru

- Posts: 38484
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Greasemonkey Newspaper RSS Renderer
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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite