小书签方法

发布于 2024-10-27 08:27:38 字数 340 浏览 4 评论 0原文

我正在尝试编写一个书签,它将为当前页面添加书签并将当前页面的链接保存在后端服务中。当我单击此小书签时,我希望此小书签在浏览器选项卡的右上角显示为一个小弹出窗口(将 iframe 附加到现有页面)。此弹出窗口将提供为当前页面添加书签的选项。此外,在此弹出窗口中还会有搜索我的书签、标签等的选项。

到目前为止,我还没有看到任何这样的书签(来自 delicioius、pinboard 等)。尽管有一些书签可以发布各种服务的链接,但它们不允许您在同一弹出窗口中搜索、查看现有的书签列表。用户被迫在新选项卡中转到书签网站进行搜索等。

我想知道是否有这样的书签(现有页面中的弹出窗口)没有完成的原因?这有什么安全原因吗?或者会被广告拦截器拦截?

I am trying to write a bookmarklet that will bookmark the current page and save the link to the current page in a backend service. When I click this bookmarklet, I want this bookmarklet to show up as a small popup on the top right in browser tab (attach iframe to existing page). This popup will have options to bookmark current page. Also, there will be options search my bookmarks, tag, etc in this popup.

So far, I have not seen any such bookmarklets (from delicioius, pinboard,etc). Although there are bookmarklets to post links to various services, they don't let you search, see the existing list of bookmarks within in the same popup. User is forced to go to the bookmarking site in a new tab to search, etc.

I am wondering is there a reason why bookmarklets (popup within existing page) like this are not done? Are there any security reasons for this? Or will be be blocked by adblockers?

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

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

发布评论

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

评论(1

澉约 2024-11-03 08:27:38

查看这些小书签 http://googlesystem.blogspot.com/2007 /07/useful-google-bookmarklets.html

javascript: (function() {
    var a = window,
    b = document,
    c = encodeURIComponent,
    d = a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=" + c(b.location) + "&title=" + c(b.title), "bkmk_popup", "left=" + ((a.screenX || a.screenLeft) + 10) + ",top=" + ((a.screenY || a.screenTop) + 10) + ",height=420px,width=550px,resizable=1,alwaysRaised=1");
    a.setTimeout(function() {
        d.focus()
    },
    300)
})();

Have a look at these bookmarklets http://googlesystem.blogspot.com/2007/07/useful-google-bookmarklets.html

javascript: (function() {
    var a = window,
    b = document,
    c = encodeURIComponent,
    d = a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=" + c(b.location) + "&title=" + c(b.title), "bkmk_popup", "left=" + ((a.screenX || a.screenLeft) + 10) + ",top=" + ((a.screenY || a.screenTop) + 10) + ",height=420px,width=550px,resizable=1,alwaysRaised=1");
    a.setTimeout(function() {
        d.focus()
    },
    300)
})();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文