I thought this would be easy. I added this code injection into the header.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>$("img").addClass("example")</script>
The scripts appear in my page source, but have no effect adding a class to images. I've tried very specific div classes and ids, and other script variations, but again no effect.
Does Squarespace somehow prevent assigning classes? The image I'm trying to target currently has no class assigned to it. Squarespace gives every element a unique ID, but these can't be selected because they change every time the page is loaded.