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