Recognize more mime types as feeds.
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
f242973384
commit
3404cc07f7
@ -9,7 +9,13 @@ if (document.getElementsByTagName('title').lenght > 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (link of links) {
|
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 linkTitle;
|
||||||
var linkUrl;
|
var linkUrl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user