您好,我安装了 chrome Pinterest 插件,当它启用时,我在我网站上的所有图片上看到“Pin It”按钮(悬停时),我怎样才能阻止“Pin It”按钮出现在我的网站上,甚至当启用 chrome 扩展程序时
经过谷歌搜索,我在博客上发现了以下内容:
You can easily disable this as an individual who has installed the extension, but if you don’t want it to conflict with any other social software you may have on your site, all you need to do is add this to ever IMG tag:
<img src="myimage.jpg" data-pin-no-hover />
但那是针对单个图像的,是否有任何其他方法可以覆盖插件以禁用 chrome 扩展程序中的“固定它”按钮?使用 JS/jQuery?
Chrome 扩展 js:http://assets.pinterest.com/ext/cr.js
编辑
<img src="myimage.jpg" data-pin-no-hover />
似乎不再起作用了
最佳答案
好的,我刚刚阅读了 Pinterest 文档,要在页面或网站上禁用 pinterest, 只需添加一个元标记:
<meta name="pinterest" content="nopin" />
并且 pinterest 按钮将不再出现在网站上。
关于javascript - 启用 Chrome 插件后,如何在我网站上的图像中隐藏 Pin It 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22231387/