From 3bdc11a9b2c78f2be8c11d28befce7328b6e5424 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 30 Dec 2022 13:58:20 -0600 Subject: Improve RSS preview --- content_scripts/rss_bridge.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 content_scripts/rss_bridge.js (limited to 'content_scripts/rss_bridge.js') diff --git a/content_scripts/rss_bridge.js b/content_scripts/rss_bridge.js new file mode 100644 index 0000000..ac591bd --- /dev/null +++ b/content_scripts/rss_bridge.js @@ -0,0 +1,20 @@ +let formats = ["Atom", "Mrss"] +function get_all_types(feed_url, note) { + let feeds = []; + formats.forEach(el => { + if(note){ + feeds.push({ + type: el, + name: `rss-bridge (${note}): ${el}`, + url: feed_url + el + }); + } else { + feeds.push({ + type: el, + name: `rss-bridge: ${el}`, + url: feed_url + el + }); + } + }) + return feeds; +} -- cgit v1.2.3