From c39c0c1adf9f89901fce5a3e13928186a69ab04f Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Tue, 2 Dec 2025 14:55:27 +0000 Subject: [PATCH 1/2] Add Javascript port of Pretty Feed XSL This is a straightforward port of the previous pretty-feed-v3.xsl to Javascript. This removes the need for XSL, which is due to be removed from most major browsers in the next year or so, while maintaining the functionality of showing a styled feed to users who might not be familiar with what feeds are and who would be understandably put out by a website spaffing a load of raw XML at them. --- tools/pretty-feed-v3.js | 142 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 tools/pretty-feed-v3.js diff --git a/tools/pretty-feed-v3.js b/tools/pretty-feed-v3.js new file mode 100644 index 0000000..efd192d --- /dev/null +++ b/tools/pretty-feed-v3.js @@ -0,0 +1,142 @@ +/* + +# Pretty Feed + +Styles an RSS/Atom feed, making it friendly for human viewers, and adds +a link to aboutfeeds.com for new user onboarding. See it in action: + + https://roblog.co.uk/feed.xml + +## How to use + +1. Download this Javascript file from the following URL and host it on your own domain: + + https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.js + +2. Include the Javascript at the top of your RSS/Atom feed, like so: + +``` + + + +