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 list = []; | |
document.querySelectorAll("body *") | |
.forEach(function(elem){ | |
if(elem.getBoundingClientRect().width > document.body.getBoundingClientRect().width){ | |
list.push(elem.outerHTML.split('>')[0] + '>'); | |
} | |
}); | |
confirm( "these elements are wider than the viewport:\n\n " + list.join("\n") ) |
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
/* You need to take care of the compatibility */ | |
/* For firefox ::-moz-range-thumb */ | |
/* For IE ::-ms-thumb */ | |
input[type="range"] { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
transform: translate(-50%, -50%); |
This script eases the process of downloading the audio files from Chirp Audiobooks.
It uses the browsers console to generate a list of URLs, and then provides a list of curl
or wget
commands to download them.
Tested with Firefox + Terminal on MacOS, and Firefox + PowerShell on Windows 10.