diff options
author | Mark Powers <mark@marks.kitchen> | 2022-12-30 13:58:20 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2022-12-30 13:58:20 -0600 |
commit | 3bdc11a9b2c78f2be8c11d28befce7328b6e5424 (patch) | |
tree | 98a88b435bf14f71a28537a0e5c8e052ab58a78c /content_scripts/rss_bridge.js | |
parent | b5c10718ddeaa8fcac368515ca150705b1a2c5ab (diff) |
Improve RSS preview
Diffstat (limited to 'content_scripts/rss_bridge.js')
-rw-r--r-- | content_scripts/rss_bridge.js | 20 |
1 files changed, 20 insertions, 0 deletions
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; +} |