1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Add a way to exclude <link> tags from being auto-added to notifications

This commit is contained in:
chylex 2020-06-07 15:45:55 +02:00
parent b4d359d30c
commit c21c10df63

View File

@ -241,7 +241,7 @@
"<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);
}