mirror of
https://github.com/aureliendavid/rsspreview.git
synced 2025-08-22 19:28:39 +00:00
parent
f7e76b5009
commit
a124ab201b
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "RSSPreview",
|
"name": "RSSPreview",
|
||||||
"version": "3.33",
|
"version": "3.33.1",
|
||||||
"author": "Aurelien David",
|
"author": "Aurelien David",
|
||||||
"homepage_url": "https://github.com/aureliendavid/rsspreview",
|
"homepage_url": "https://github.com/aureliendavid/rsspreview",
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
//only do it if there's a tag to avoid doing it when text titles cointain a '&'
|
//only do it if there's a tag to avoid doing it when text titles cointain a '&'
|
||||||
//(which can be caught but still displays an error in console, which is annoying)
|
//(which can be caught but still displays an error in console, which is annoying)
|
||||||
if (et[i].innerText.indexOf('<') >= 0 || et[i].innerText.indexOf('&')) {
|
if (et[i].innerText.indexOf('<') >= 0 || et[i].innerText.indexOf('&')) {
|
||||||
console.log(et[i].innerText);
|
|
||||||
let tmp = document.createElement('span');
|
let tmp = document.createElement('span');
|
||||||
try {
|
try {
|
||||||
tmp.innerHTML = et[i].innerText;
|
tmp.innerHTML = et[i].innerText;
|
||||||
@ -267,9 +267,12 @@
|
|||||||
|
|
||||||
let isRSS1 = false;
|
let isRSS1 = false;
|
||||||
|
|
||||||
if (rootName == 'rdf' || rootName == 'rdf:rdf')
|
if (rootName == 'rdf' || rootName == 'rdf:rdf') {
|
||||||
if (rootNode.attributes['xmlns'])
|
if (rootNode.documentElement.attributes['xmlns']) {
|
||||||
isRSS1 = rootNode.attributes['xmlns'].nodeValue.search('rss') > 0;
|
isRSS1 = rootNode.documentElement.attributes['xmlns'].nodeValue.search('rss') > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
rootName == 'rss' ||
|
rootName == 'rss' ||
|
||||||
|
Loading…
Reference in New Issue
Block a user