Skip to content

Instantly share code, notes, and snippets.

@dannyid
Last active September 14, 2016 09:19
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 dannyid/1df79b8ff9387d93479cc0e2a94f2edc to your computer and use it in GitHub Desktop.
Save dannyid/1df79b8ff9387d93479cc0e2a94f2edc to your computer and use it in GitHub Desktop.
Download the video you're currently watching on TeamTreehouse.com

###What does it do?

Downloads the HD version of the Team Treehouse video you're currently watching.

###How to use:

  1. Right click on your bookmarks bar and choose Add Page...
  2. Give it a name and paste the below code in the URL section
javascript:(function() {
  var link = document.querySelectorAll('#downloads-tab-content a[href*=hd]')[0];
  link.download = true;
  link.click();
})();
  1. Click on the bookmarklet to promptly download the current video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment