Skip to content

Instantly share code, notes, and snippets.

Created June 9, 2021 21:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Download Pirple Courses - Wistia CDN
// step one:
let link = JSON.parse(document.querySelector('.w-json-ld').textContent)["@id"];
console.log('link: ', link), '_target=blank');
// step two:
let link = document.querySelectorAll('script')[4].getInnerHTML().split('https://')[1].split('.bin')[0];
window.location.href = 'https://'+link+'.mp4';
// step three:
let link = window.location.href;
let a = document.createElement('a');
a.href = link; = 'lesson-'+ + '-' + link.split('://')[1];
a.innerHTML = 'click me'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment