TL;DR Position an overlay element (in this case, a <canvas>) at the bottom of the browser viewport and draw some squares in the same color as your site's background color.
Yes, correct. And this method only works because the background is the same color as the overlaid blocks and the font is monospace, so you can precisely position the blocks over the characters.