ShareThis scripts are commonly used to add social sharing widgets to your site.
For this, you might use the script:
As a work around, you could conditionally embed the required client side code so that it shows up only in the normal page mode. (Preview mode will also be affected with this issue)
Please note: adding the conditional block within the <head> tag will not work and will result in a runtime error since code blocks are not allowed in the head tag:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>)
This needs to be in the <body> tag.