A couple of bugs
WITH THE SCRIPT IN PLACE
When logged into the CMS, these links are behind the #pageHeaderWrapper and cannot be accessed:
<a href="javascript:Squarespace.Interaction.doEditCodeRegion('pre-body');">edit pre-body code</a>
<a href="javascript:Squarespace.Interaction.doEditCodeRegion('post-header');">edit post-header code</a>
This applies on all pages, not just the target modules.
The matter is corrected when the script is taken out of the footer