Sunny weather hacks for my.zwift.com

The sun is shining, it is maybe time to ride some outdoors – but first you want to review your Zwift season on https://my.zwift.com. You log in, the first activities load, and then … you press Load More… and wait… press Load More… and wait… press Load More… and wait…

Help is on its way! Here you get a couple of bookmarklets, Load all activities, and Download all fit files. They have been tested to work in Google Chrome.

 

Load all activities

The Load all activities bookmarklet presses the Load More button for you until all your Zwift activities are loaded into the page. It may take some time for all data to load, but find a sunbeam and let it warm you while you wait.

You find the link which you have to drag to your bookmarks at this page: ZwiftHacks Bookmarklets

If you are interested, this is the code it runs:
javascript:(function() {
const b = '#home-page > div > div.container > div > div:nth-child(3) > feed-component > div.text-center > button';
if (document.querySelector(b)) {
    document.addEventListener('DOMNodeInserted', function() {
        if1 && (lm.innerText == 'LOAD MORE')) {
            lm.click();
        }
    });
     document.scrollingElement.scrollTop = document.scrollingElement.scrollHeight;
    document.querySelector(b).click();
}
})();

 

Download all fit files

The Download all fit files bookmarklet downloads the .fit files of all activities currently visible on the my.zwift.com page. You may have to allow popups from the site for it to work. And a piece of advice: Try it while only a few activities have been loaded into the page before you load all activities into the page and kick of a download of hundreds of .fit files.

You find the link which you have to drag to your bookmarks at this page: ZwiftHacks Bookmarklets

If you are interested, this is the code it runs:
javascript:(function() {
var dls = document.querySelectorAll('.visible-xs-block > a.btn-link'), i;
for (i = 0; i < dls.length; i++) {
   window.open(dls[i].href);
}
})();

 

  1. lm = document.querySelector(b []

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *