aboutsummaryrefslogtreecommitdiff
path: root/content_scripts/rss_bridge.js
blob: ac591bdbd796e0ef92ea22ce2f139e24884f4772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}