mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-31 08:34:10 +02:00
Add a way to exclude <link> tags from being auto-added to notifications
This commit is contained in:
parent
b4d359d30c
commit
c21c10df63
@ -241,7 +241,7 @@
|
|||||||
"<html " + Array.prototype.map.call(doc.attributes, ele => `${ele.name}="${ele.value}"`).join(" ") + "><head>"
|
"<html " + Array.prototype.map.call(doc.attributes, ele => `${ele.name}="${ele.value}"`).join(" ") + "><head>"
|
||||||
];
|
];
|
||||||
|
|
||||||
for(let ele of document.head.querySelectorAll("link[rel='stylesheet'],meta[charset]")){
|
for(let ele of document.head.querySelectorAll("link[rel='stylesheet']:not([data-td-exclude-notification]),meta[charset]")){
|
||||||
tags.push(ele.outerHTML);
|
tags.push(ele.outerHTML);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user