Skip to content

Instantly share code, notes, and snippets.

View squirelo's full-sized avatar
💭
Currently entertaining

Valentin Squirelo squirelo

💭
Currently entertaining
View GitHub Profile
tell application "Google Chrome"
activate
set theUrl to "http://catvsdino.com"
if (count every window) = 0 then
make new window
end if
set found to false
set theTabIndex to -1
@squirelo
squirelo / hb_all_books_dl.js
Last active March 9, 2018 22:02 — forked from graymouser/hb_all_books_dl.js
Humble bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript
*/
$('a').each(function(i){
if ($.trim($(this).text()) == 'EPUB') {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
});