diff options
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; +} |