Skip to content

Instantly share code, notes, and snippets.

@FlameWolf
Last active May 4, 2024 09:42
Show Gist options
  • Save FlameWolf/75347dda31f3029249a56cc7f4e2110d to your computer and use it in GitHub Desktop.
Save FlameWolf/75347dda31f3029249a56cc7f4e2110d to your computer and use it in GitHub Desktop.
Get content from KKS
copy((function() {
const contentParagraphs = [
...document.querySelectorAll("#main > #content > article > .entry-content > p"),
...document.querySelectorAll("div.entry-content > div:not(#widgets-wrap-before-post-content)")
];
return contentParagraphs
.filter(x => x.getAttribute("role") !== "navigation")
.reduce((acc, value) => acc + "\n" + value.textContent, "");
})());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment