Created
June 1, 2013 18:44
-
-
Save quarnster/5691334 to your computer and use it in GitHub Desktop.
Small javascript for fetching all files in a document.
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
var re = new RegExp("download|subtitle.*srt|class_resources|slides") | |
for (var i in document.links) | |
{ | |
var link = document.links[i].href; | |
if (re.test(link)) { | |
window.open(link); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment