1
0
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:
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>" "<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);
} }