Skip to content

Instantly share code, notes, and snippets.

@stepahn
Last active July 12, 2018 06:51
Show Gist options
  • Save stepahn/c00efa776ec66f367a6fecbf02c8eb0e to your computer and use it in GitHub Desktop.
Save stepahn/c00efa776ec66f367a6fecbf02c8eb0e to your computer and use it in GitHub Desktop.
humble bundle bookmarklet
javascript:(function()%7B(function()%7Bvar%20el%20%3D%20document.createElement('p')%3Bel.style.cssText%20%3D%20%22background%3A%20white%3B%20font-family%3A%20monospace%3B%20border%3A%20thick%20solid%20red%3B%20-webkit-user-select%3A%20all%3B%20user-select%3A%20all%3B%22%3Bdocument.querySelectorAll('.download%20a%3Anot(.dlmd5)').forEach(function(e)%20%7Bel.innerHTML%20%2B%3D%20e.href%20%2B%20%22%3Cbr%3E%22%3B%7D)%3Bdocument.querySelector('.page-wrap').insertBefore(el%2C%20document.querySelector('.base-main-wrapper'))%3B%7D)()%7D)()
(function(){
var el = document.createElement('p');
el.style.cssText = "background: white; font-family: monospace; border: thick solid red; -webkit-user-select: all; user-select: all;";
document.querySelectorAll('.download a:not(.dlmd5)').forEach(function(e) {
el.innerHTML += e.href + "<br>";
});
document.querySelector('.page-wrap').insertBefore(el, document.querySelector('.base-main-wrapper'));
})()
wget -c --content-disposition --trust-server-names -i dl.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment