Download Pirple Courses - Wistia CDN
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
// step one: | |
let link = JSON.parse(document.querySelector('.w-json-ld').textContent)["@id"]; | |
console.log('link: ', link) | |
window.open(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; | |
a.download = 'lesson-'+ Date.now() + '-' + link.split('://')[1]; | |
a.innerHTML = 'click me' | |
document.body.appendChild(a); | |
a.click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment