如何在 FBML 中分发小书签?

发布于 2024-08-25 19:13:12 字数 284 浏览 2 评论 0原文

我有一个 JavaScript 书签,我希望某个页面的粉丝可以使用它。不幸的是,我发现分发它的唯一方法是向他们提供原始 JavaScript 源代码,然后将其添加为书签就会出现问题。

理想情况下,我会使用

<a href="javascript:/*my bookmarklet*/">Drag this to the bookmarks bar</a>

But FBML 过滤掉 JavaScript href。

有什么建议吗?

I have a JavaScript bookmarklet that I'd like fans of a certain page to take. Unfortunately, the only way I've found of distributing it is giving them the raw JavaScript source, which is then problematic to add as a bookmark.

Ideally, I'd use

<a href="javascript:/*my bookmarklet*/">Drag this to the bookmarks bar</a>

But FBML filters out the JavaScript href.

Any advice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

羞稚 2024-09-01 19:13:12

如果无法使用 fbml,我将分享一个指向您放置实际书签的网页的链接。这是在此页面上显示有关如何安装/使用小书签的教程的机会。

If it is not possible using fbml, I would share a link to a web page where you put the actual bookmarklet. It is the opportunity to display on this page a tutorial on how install/use the bookmarklet.

岁月如刀 2024-09-01 19:13:12

呵呵。看起来以文本形式拖动书签就足以创建书签。

Huh. Looks like dragging the bookmarklet in text form is sufficient to create a bookmark.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文