From eeed72fcc51d8e92fdaae5bd2ee0f8b7a9148bfa Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 17 May 2021 09:02:36 +0300 Subject: forbid borders in book content --- js/reader.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'js') diff --git a/js/reader.js b/js/reader.js index e580a9e..84c965f 100644 --- a/js/reader.js +++ b/js/reader.js @@ -552,9 +552,19 @@ const Reader = { .css("font-family", "inherit") .css("font-size", "inherit") .css("color", "") + .css("border", "none ! important") .css("background", "") .css("background-color", ""); + // same as above except for allowed font-size + $(doc).find("h1, h1, h3, h4, h5") + .attr("class", "") + .css("font-family", "inherit") + .css("color", "") + .css("border", "none ! important") + .css("background", "") + .css("background-color", ""); + if (typeof Reader.hyphenateHTML != "undefined") { $(doc).find('p').each((i,p) => { p = $(p); -- cgit v1.2.3