Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Simply copy and paste it in the developer console on humble bundle after-purchase page, where all download links are available.
- It uses a timeout for avoiding the browser to block the popup.
- */
- document.querySelectorAll('div.downloads div.download a.a').forEach(e => {
- setTimeout(() => {
- if (e.href.indexOf('//dl.') != -1) {
- window.open(e.href, '_blank')
- }
- }, 2000);
- })
Add Comment
Please, Sign In to add comment