- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在寻找一种方法来创建一个按钮,我可以将其放置在页面上每个项目的旁边。
当用户单击该按钮时,它会自动抓取它旁边的任何项目的图像,并自动将其发布到该用户的 Pinterest 板上(使用相同的描述)。
我已经搜索了几天来寻找一种方法来做到这一点,但运气不佳,我所遇到的只是这两个网站:
http://www.nextscripts.com/pinterest-automated-posting
http://www.brandaiddesignco.com/blog/add-a-custom-pinterest-pin-it-button-to-your-website/375/#
最佳答案
看看this script pinterest.com/about/goodies: "Pin It Button for Web Sites" 带给你的.在 http://jsbeautifier.org/ 对其进行去混淆处理看看它做了什么:
<a>
文档中的元素及其出现时间 href
属性包含字符串 "//pinterest.com/pin/create/button/?"
,现在,您应该能够编写一个脚本来获取所有按钮,抓取其旁边的图像(但是这是否可行,取决于您的 DOM)并创建这样的 iframe。
如果您不想要弹出窗口,您可以查看 iframe/弹出窗口源代码并直接发布到您在那里找到的地址。
I've come across is these two sites:
http://www.nextscripts.com/pinterest-automated-posting是一个非免费的 wordpress 插件,包括一个用于发布到 pinterest 的 API(因为他们自己没有)。在购买之前,您只能猜测 PHP 代码中会发生什么。
http://www.brandaiddesignco.com/blog/add-a-custom-pinterest-pin-it-button-to-your-website/375/#只是动态加载this script当您单击该按钮时,脚本会创建一个 GUI 以从页面中选择图像。
关于javascript - Pinterest "Pin It"按钮破解,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11352995/
我是一名优秀的程序员,十分优秀!