From 3404cc07f7ddb065fcb0cde21cb1e631415e4447 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sat, 12 Mar 2022 02:42:53 +0100 Subject: [PATCH] Recognize more mime types as feeds. Signed-off-by: Juraj Oravec --- rssfinder/finder.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rssfinder/finder.js b/rssfinder/finder.js index aed4c89..d4bd2f0 100644 --- a/rssfinder/finder.js +++ b/rssfinder/finder.js @@ -9,7 +9,13 @@ if (document.getElementsByTagName('title').lenght > 0) { } for (link of links) { - if (link.getAttribute('rel') == 'alternate' && link.getAttribute('type') == 'application/rss+xml') { + if ( (link.getAttribute('rel') == 'alternate') + && ( (link.getAttribute('type') == 'application/rss+xml') + || (link.getAttribute('type') == 'application/atom+xml') + || (link.getAttribute('type') == 'application/stream+json') + || (link.getAttribute('type') == 'application/rdf+xml') + ) + ) { var linkTitle; var linkUrl;