Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
See: #1626
  • Loading branch information
dteviot committed Jan 15, 2025
1 parent 9956c28 commit 7ad2919
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions plugin/js/parsers/DasuitlParser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use strict";

parserFactory.register("dasuitl.com", () => new DasuitlParser());

class DasuitlParser extends WordpressBaseParser{
constructor() {
super();
}

extractTitleImpl(dom) {
return dom.querySelector(".card_title");
}

removeUnwantedElementsFromContentElement(element) {
util.removeChildElementsMatchingCss(element, ".wp-block-buttons");
super.removeUnwantedElementsFromContentElement(element);
}

findChapterTitle(dom) {
return dom.querySelector(".card_title");
}
}
1 change: 1 addition & 0 deletions plugin/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ <h3>Instructions</h3>
<script src="js/parsers/CrimsontranslationsParser.js"></script>
<script src="js/parsers/CzbooksParser.js"></script>
<script src="js/parsers/DarkNovelsParser.js"></script>
<script src="js/parsers/DasuitlParser.js"></script>
<script src="js/parsers/DefaultParser.js"></script>
<script src="js/parsers/DeviantArtParser.js"></script>
<script src="js/parsers/DummynovelsParser.js"></script>
Expand Down

0 comments on commit 7ad2919

Please sign in to comment.