• Published
  • 1 min

Disable the ShareThis "See more at" link when copying text

The ShareThis social sharing plugin has a rather annoying "feature" that injects a hashed link in text copied from your site. Get rid of that easily.

Using the ShareThis social sharing plugin on your EPiServer site? You may have noticed that when copying some text from your site, you get more than you asked for:

Some text copied from an article on my website - See more at: http://www.mysite.com/my-article/#sthash.r8xye4PB.dpuf

"See more at" link injected by ShareThis plugin

Earlier this year, ShareThis added the new feature "CopyNShare" (see, even their support link has that annoying URL appendix) that is supposed to help content creators track how much snippets of their content is being shared.

In reality though, it just confused site owners who never asked for this feature and were now wondering if their site had been hacked.

Classy move, ShareThis.

Disabling it is easy, though. You are probably already initializing ShareThis in your <head> section, e.g. like this:

<script src="http://w.sharethis.com/button/buttons.js" type="text/javascript"></script>

To disable the hashed link from copied text, add these options in your <head> section:

<script type="text/javascript">stLight.options({publisher: "YOUR-SHARETHIS-KEY-HERE", doNotHash:true, doNotCopy:true,hashAddressBar:false});</script>

Done.