From 8cda0f466351690008931075da0f32f04e168fca Mon Sep 17 00:00:00 2001 From: perishableloc Date: Sat, 20 Jan 2024 08:40:06 +0100 Subject: [PATCH] KemonopartyParser don't download unwanted images --- plugin/js/parsers/KemonopartyParser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/js/parsers/KemonopartyParser.js b/plugin/js/parsers/KemonopartyParser.js index 010374eb..40f8ef81 100644 --- a/plugin/js/parsers/KemonopartyParser.js +++ b/plugin/js/parsers/KemonopartyParser.js @@ -39,9 +39,8 @@ class KemonopartyParser extends Parser{ })); } - removeUnwantedElementsFromContentElement(element) { - util.removeChildElementsMatchingCss(element, ".ad-container"); - super.removeUnwantedElementsFromContentElement(element); + preprocessRawDom(webPageDom) { + util.removeChildElementsMatchingCss(webPageDom, ".ad-container"); } findContent(dom) {