Created
May 8, 2015 22:07
-
-
Save joeynovak/e14f73f0b4c1dd77c49d to your computer and use it in GitHub Desktop.
Generate wget commands to download links on website.
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
jQuery('#wget').remove(); | |
jQuery('body').append('<textarea id="wget" style="width: 100%; height: 640px"></textarea>'); | |
jQuery('a').each(function(){ | |
jQuery('#wget').append("wget -O " + jQuery(this).text().trim().replace(/\s+/g, '-').replace(/\\/g, '-').toLowerCase() + ".pdf http://madstyle1972.com/Repair/" + jQuery(this).attr('href') + "\n"); | |
}); | |
jQuery('#wget').select(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment