DEV Community

bluebaroncanada
bluebaroncanada

Posted on

1

Automatically like all rides from other users initially loaded on your Strava dashboard

// ==UserScript==
// @name         Strava like all
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.strava.com/dashboard
// @icon         https://www.google.com/s2/favicons?sz=64&domain=strava.com
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';


jQuery( document ).ready(function() {
    setTimeout(function() {
        console.log('Liking ' + jQuery('button[title="Give kudos"]').length + ' new rides');
        jQuery('button[title="Give kudos"]').each(function(i,e) {
            jQuery(e).click();
        });
    },5000);
});
})();
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️