Official Implementation

HTML<a href="//" data-pin-do="buttonPin" data-pin-config="above"><img src="//" /></a>
<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async src="//"></script>


This fix relies on the fact that Pinterest loads it's code into a PIN_12345 variable where 12345 is the current day since epoch. If you inspect the pinit.js file you will see the same calculation used to determine the variable to delete.

Remove the script tag from the body and the following coffeescript to your application:

  load: ->
    delete window["PIN_"+~~((new Date).getTime()/864e5)]

$ ->

# if you're using jquery.turbolinks, you don't need this binding
$(document).on 'page:load', ->

Thanks to the VanRuby Meetup for help and pizza on developing this fix.

Related Issues: #28


All solutions should be considered unofficial. There is no guarantee that a given solution will work with your application. If you find that a solution is insufficient, please let me know by submitting an issue on Github.