Link to “pin it” on pinterest without generating a button

后端 未结 7 1586
时光取名叫无心
时光取名叫无心 2020-12-12 13:18

I have a page with tens or hundreds of posts, each one with social buttons. I just can\'t generate all the buttons for each url: it is too slow (facebook, g+, twitter, pinte

7条回答
  •  粉色の甜心
    2020-12-12 13:43

    So you want the code to the pin it button without installing the button? If so just paste this code in the place of the url of the page you're pinning from. It should function as a pin it button without the button.

    javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());

提交回复
热议问题