diff options
author | Andrew Dolgov <[email protected]> | 2020-09-13 15:09:32 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-13 15:09:32 +0300 |
commit | a90c91ca5534e5fa4427e95f90a41056a33b9564 (patch) | |
tree | 2a4e1d9855a9b9c01259d0bde1860ce26832e889 /js/reader.js | |
parent | d3da50c11bf1b9ab6b1868e0a727f5d3a5c07c10 (diff) |
force-remove per-book CSS classes applied inside iframe
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reader.js b/js/reader.js index ff7c3e3..64c3404 100644 --- a/js/reader.js +++ b/js/reader.js @@ -714,6 +714,10 @@ const Reader = { $(c.document).find("p") .filter((i, e) => { if ($(e).text().length >= MIN_LENGTH_TO_JUSTIFY) return e; }) .css("text-align", "justify"); + + /* embedded styles may conflict with our font sizes, etc */ + $(c.document).find("p, span, em, strong, body") + .attr("class", ""); }); }); |