DEV Community

bluebaroncanada
bluebaroncanada

Posted on

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)