Last active
August 3, 2017 21:52
-
-
Save euforic/1f3f432bd68729424f3158f88286cdd5 to your computer and use it in GitHub Desktop.
Find links on a page and copy to clipboard in Chrome console
This file contains hidden or 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
let links = [] | |
for(let i = 0; i < l.length -1; i++) { | |
if (l[i].href.includes('screencast')) { | |
let p = l[i].href.split('/') | |
links.push(l[i].href + 'media/' + p[p.length -2] + '.mp4') | |
} | |
} | |
copy(links) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment