Last active
May 3, 2016 17:22
-
-
Save LeeRJohnson/0e7ca7b2e63fc9ea5ff18ce780a80b74 to your computer and use it in GitHub Desktop.
Endomondo Bulk History Download Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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);});})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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