Recently I wrote about how I’ve added some stuff to my Squarespace site to make it more fun for readers. Two notable things I added are sharing icons and a reading time estimate at the top of the post.
Here’s the script. Add it in your code injection. You’ll need to change some of the variables, unless you’re keen to have everyone accidentally end up on my site instead of yours.
It has a jQuery call in it, so remove that if you already call jQuery in your code injection.
It’s also ugly as hell, partly because I like to split my code up so people can adapt it, and partly because I’m a hack.