From 3ad2f8e8d94d14635a92073f60ddff9d54bfccd5 Mon Sep 17 00:00:00 2001 From: dteviot Date: Fri, 8 Dec 2023 09:55:33 +1300 Subject: [PATCH] Fix site https://www.manhwaden.com/ See: https://github.com/dteviot/WebToEpub/issues/1105 --- plugin/js/parsers/ManhwadenParser.js | 13 +++++++++++++ plugin/popup.html | 1 + 2 files changed, 14 insertions(+) create mode 100644 plugin/js/parsers/ManhwadenParser.js diff --git a/plugin/js/parsers/ManhwadenParser.js b/plugin/js/parsers/ManhwadenParser.js new file mode 100644 index 00000000..595376d0 --- /dev/null +++ b/plugin/js/parsers/ManhwadenParser.js @@ -0,0 +1,13 @@ +"use strict"; + +parserFactory.register("manhwaden.com", () => new ManhwadenParser()); + +class ManhwadenParser extends MadaraParser{ + constructor() { + super(); + } + + preprocessRawDom(webPageDom) { + util.removeChildElementsMatchingCss(webPageDom, "img:not([src])"); + } +} diff --git a/plugin/popup.html b/plugin/popup.html index d72f4480..09a07992 100644 --- a/plugin/popup.html +++ b/plugin/popup.html @@ -628,6 +628,7 @@

Instructions

+