mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Strip inline max-height and max-width from elements
This commit is contained in:
@@ -344,7 +344,7 @@ private extension ArticleRenderer {
|
||||
},
|
||||
stripStyles: function() {
|
||||
document.getElementsByTagName("body")[0].querySelectorAll("style, link[rel=stylesheet]").forEach(element => element.remove());
|
||||
document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font"]));
|
||||
document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font", "max-width", "max-height"]));
|
||||
},
|
||||
linkHover: function() {
|
||||
var anchors = document.getElementsByTagName("a");
|
||||
|
||||
Reference in New Issue
Block a user