Recognize more mime types as feeds.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-03-12 02:42:53 +01:00
parent f242973384
commit 3404cc07f7
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -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;