Skip to content

Instantly share code, notes, and snippets.

@ashleyconnor
Last active January 26, 2023 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashleyconnor/755c1ed931f4c5174627b6770183ce29 to your computer and use it in GitHub Desktop.
Save ashleyconnor/755c1ed931f4c5174627b6770183ce29 to your computer and use it in GitHub Desktop.
Rip Activity History from Blind
// continually scroll to the bottom to load all comments
let comments = document.querySelectorAll("div.contents.c_activity li");
[...comments].map((el) => {
let link = el.querySelectorAll(":scope a")[0].href
let text = el.querySelectorAll(":scope a")[0].innerText.trim();
let date = el.querySelectorAll(":scope span.date")[0].innerText.trim();
let detail = el.querySelectorAll(":scope div.detail")[0].innerText.trim();
return {
link,
text,
date,
detail
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment