Skip to content

Commit da98ca7

Browse files
committed
Remove unwanted elements for site 69shu.com
See: #971
1 parent f190f8b commit da98ca7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/js/parsers/69shuParser.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class ShuParser extends Parser{
2626
return util.getFirstImgSrc(dom, "div.bookbox");
2727
}
2828

29+
removeUnwantedElementsFromContentElement(element) {
30+
util.removeChildElementsMatchingCss(element, ".txtinfo, #txtright, .bottom-ad");
31+
super.removeUnwantedElementsFromContentElement(element);
32+
}
33+
2934
async fetchChapter(url) {
3035
// site does not tell us gb18030 is used to encode text
3136
return (await HttpClient.wrapFetch(url, this.makeOptions())).responseXML;

0 commit comments

Comments
 (0)