Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active December 22, 2015 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josy1024/fa269bd00497060f84f3 to your computer and use it in GitHub Desktop.
Save josy1024/fa269bd00497060f84f3 to your computer and use it in GitHub Desktop.
download runtastic activities in BULK tcx gpx heart rate file
var links = []; $('.type > a').each ( function () {
links.push($(this).attr('href'))
} )
setInterval(function () {
if ( !links.length) { return; }
var link = links.shift();
link += '.tcx';
var newFrame = document.createElement('iframe');
document.body.appendChild(newFrame);
newFrame.style = 'width: 1px; height: 1px;';
newFrame.src = link;
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment