Merge pull request #2096 from Wevah/ios-release
ios-release: Strip inline max-width and max-height from elements
This commit is contained in:
commit
327b1c59a9
|
@ -19,7 +19,7 @@ function stripStylesFromElement(element, propertiesToStrip) {
|
||||||
function stripStyles() {
|
function stripStyles() {
|
||||||
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());
|
||||||
// Removing "background" and "font" will also remove properties that would be reflected in them, e.g., "background-color" and "font-family"
|
// 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
|
// Convert all Feedbin proxy images to be used as src, otherwise change image locations to be absolute if not already
|
||||||
|
|
Loading…
Reference in New Issue