Skip to content

Instantly share code, notes, and snippets.

@LeeRJohnson
Last active May 3, 2016 17:22
Show Gist options
  • Save LeeRJohnson/0e7ca7b2e63fc9ea5ff18ce780a80b74 to your computer and use it in GitHub Desktop.
Save LeeRJohnson/0e7ca7b2e63fc9ea5ff18ce780a80b74 to your computer and use it in GitHub Desktop.
Endomondo Bulk History Download Scripts
javascript:(function(){document.querySelectorAll(".history-item-content").forEach(function(a){a="https://www.endomondo.com/rest/v1"+a.getAttribute("href")+"/export?format=GPX";window.open(a);});})();
var endoRestPrefix = "https://www.endomondo.com/rest/v1";
var endoExportSuffix = "/export?format=";
var exportType = "GPX";
document.querySelectorAll(".history-item-content").forEach(function(historyItem) {
var exportURL = endoRestPrefix
+ historyItem.getAttribute("href")
+ endoExportSuffix
+ exportType;
window.open(exportURL);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment