From 6723599ea063f7a43c2d5030c765a186afad2a61 Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Wed, 20 May 2020 16:12:24 -0500 Subject: [PATCH] Strip inline max-width and max-height from elements --- Shared/Article Rendering/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Article Rendering/main.js b/Shared/Article Rendering/main.js index 25c96d1b0..9b9535bae 100644 --- a/Shared/Article Rendering/main.js +++ b/Shared/Article Rendering/main.js @@ -19,7 +19,7 @@ function stripStylesFromElement(element, propertiesToStrip) { function stripStyles() { document.getElementsByTagName("body")[0].querySelectorAll("style, link[rel=stylesheet]").forEach(element => element.remove()); // Removing "background" and "font" will also remove properties that would be reflected in them, e.g., "background-color" and "font-family" - 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"])); } // Convert all Feedbin proxy images to be used as src, otherwise change image locations to be absolute if not already