Skip to content

Instantly share code, notes, and snippets.

@Jonathan-Mckenzie
Last active February 2, 2024 13:52
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Jonathan-Mckenzie/5d9a585f9d9a22ad115d14fa60a019e7 to your computer and use it in GitHub Desktop.
Save Jonathan-Mckenzie/5d9a585f9d9a22ad115d14fa60a019e7 to your computer and use it in GitHub Desktop.
Give everyone in your strava feed a kudos

Give kudos to every event in your feed

  1. Navigate to the main feed page of Strava in a web browser:
    https://www.strava.com/dashboard?num_entries=100
  2. Replace the "100" in the above URL with whatever number of activities you wish to give kudos to
  3. Open Developer Tools in your web browser and navigate to the console
  4. Paste the script below into the console and press enter:
setInterval(() => {
    document.querySelectorAll('button[title="Give kudos"]').forEach(node => {
        node.click();
    });
    window.scrollBy(0,1024); 
},2000);
  1. Every activity in view should be given Kudos.

Future Enhancements

  • Script that automatically fetches your activity feed and gives kudos
@salvabosque
Copy link

hi, I get "Undefined". Does it still work for you or maybe has Strava change something? Thanks!

@agerlandio
Copy link

Strava has updated. Try:
document.querySelectorAll('[data-testid="kudos_button"]').forEach(function(node) {node.click()});

@lhotakj
Copy link

lhotakj commented Aug 14, 2023

including scrolling

setInterval(() => {window.scrollBy(0,200); document.querySelectorAll('button[data-testid="kudos_button"]').forEach(node => node.click())},100);

@vipul-mehtalogy
Copy link

vipul-mehtalogy commented Jan 31, 2024

Now this is working...
document.querySelectorAll('svg[data-testid="unfilled_kudos"]').forEach((node,i) => {try{console.log(i); node.parentElement.click();}catch{}})

This also works on club pages.

@Jonathan-Mckenzie
Copy link
Author

Updated to include scrolling thank you.
Also updated to hit on their new <button title="Give kudos" .../> elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment