Skip to content

Instantly share code, notes, and snippets.

@npanuhin
Last active December 25, 2021 12:56
Show Gist options
  • Save npanuhin/0c2a595c50fa01368ec3bd0cfb35415d to your computer and use it in GitHub Desktop.
Save npanuhin/0c2a595c50fa01368ec3bd0cfb35415d to your computer and use it in GitHub Desktop.
Strava: find all your posts in club
var name = "Name Surname";
function update() {
for (let post of document.querySelectorAll("#discussion-topics > li")) {
if (post.querySelector(".topic > .post-container > .post > .post-header > .post-info > a.str-click-name-js > strong").innerText == name) {
console.log(post.querySelector(".topic > .post-container > .post > .post-content .post-body > a").href);
}
post.remove();
}
document.querySelector(".pagination > button").click();
// console.log("Iteration");
setTimeout(update, 1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment