gpt4 book ai didi

javascript - Pinterest "Pin It"按钮破解

转载 作者:行者123 更新时间:2023-11-29 20:07:47 26 4
gpt4 key购买 nike

我正在寻找一种方法来创建一个按钮,我可以将其放置在页面上每个项目的旁边。

当用户单击该按钮时,它会自动抓取它旁边的任何项目的图像,并自动将其发布到该用户的 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/?" ,
  • 它用 iframe ( http://pinit-cdn.pinterest.com/pinit.html?... ) 替换它们,其属性取决于链接的 URI 和其他属性。

现在,您应该能够编写一个脚本来获取所有按钮,抓取其旁边的图像(但是这是否可行,取决于您的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com