This fix relies on the fact that Pinterest loads it's code into a
12345 is the current day since epoch. If you inspect the
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:
Pinterest = load: -> delete window["PIN_"+~~((new Date).getTime()/864e5)] $.getScript("//assets.pinterest.com/js/pinit.js") $ -> Pinterest.load() # if you're using jquery.turbolinks, you don't need this binding $(document).on 'page:load', -> Pinterest.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.