Firefox 3 地址栏自动完成依赖项

发布于 2024-07-18 07:49:07 字数 788 浏览 10 评论 0原文

背景: 使用 FF3 的人可能熟悉地址栏的一个有趣的新属性。 它允许您执行子字符串自动完成,以便过滤您之前查看过的 URL。

因此,如果您想打开以下 URL:

 http://longservernamehere.thatyou.nevercanremember.com/support/asdf1235234/kbid?1245

您只需键入足以唯一区分该 URL 的该 URL 的任何子字符串即可:

 long<space>never<space>support<ENTER>

这改变了用户思考 URL 的方式,因为现在他们只需记住有助于缩小潜在链接范围的关键字(子字符串)

问题:此功能很棒,但有一个缺点。 用户添加书签和记住 URL 的积极性降低。 如果用户需要在远程站点(例如在销售电话期间)输入 URL 并且他们因为记不住想要在会议期间显示的时髦产品目录的 URL 而摸索,这显然会成为一个问题。

显然,有一些方法可以解决这个问题:在参加会议之前为您的网址添加书签并将书签复制到您的笔记本电脑上; 使用第三方解决方案或在线书签门户; 社交书签网站等。

问题 问题是,对于那些不想使用上述任何解决方法的用户,实际上是否有一种方法可以直接深入研究 FF3 内部结构,以便我可以编写一个脚本来提取必要的组件在任何机器上复制用户自动完成行为?

Background:
Those of you who use FF3 may be familiar with an interesting new attribute of the address bar. It allows you to do sub-string auto-complete in order to filter through URLs that you have viewed previously.

Therefore, if you want to open the following URL:

 http://longservernamehere.thatyou.nevercanremember.com/support/asdf1235234/kbid?1245

You can simply type any sub-strings of that URL that are sufficient to uniquely distinguish the URL:

 long<space>never<space>support<ENTER>

This changes the way users can think about URLs, because now all they have to remember are the keywords (sub-strings) that will help narrow down the potential links

Problem: This feature is great, but there is a downside. Users have a decreased incentive to bookmark and memorize URLs. This obviously becomes a problem if a User needs to type in a URL at a remote site (for example during a sales call) and they fumble around because they cannot remember the URL of the snazzy product catalogue that they want to show during a meeting.

Obviously, there are ways around this problem: bookmark your urls and copy your bookmarks to your laptop before you go on a meeting; use a third-party solution or online bookmarking portal; social bookmarking sites and so on.

Question
The question is, for those users who do not want to use any of the above workarounds, is there actually a way to directly dig into the FF3 internals so I can write a script that will extract the components necessary to replicate a users auto-complete behavior on any machine?

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

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

发布评论

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

评论(1

樱娆 2024-07-25 07:49:07

Firefox 将所有这些信息存储在 SQLite 数据库中。 如果安装了SQLite就可以直接查询。 您还可以使用 SQLite Manager Firefox 插件浏览它。

总而言之,url历史记录存储在moz_places中,并且您在地址栏中输入的各种“短语”通过moz_inputhistory与places相关联,即儿童桌。

他们的算法似乎是:当您在地址栏中输入每个字符时,查询 moz_inputhistory 中匹配的条目,并按 use_count 降序显示它们。

希望有帮助。

编辑:这个网站有很多关于 Firefox 数据库的好信息: firefoxforensic.com

Firefox stores all this information in SQLite databases. You can query it directly if you have SQLite installed. You can also browse it using the SQLite Manager Firefox plugin.

In summary, the url history is stored in moz_places, and the various "phrases" that you have typed in the address bar are associated with places via moz_inputhistory, which is a child table.

Their algorithm seems to be: as you type each character into the address bar, query moz_inputhistory for matching entries and display them in descending order by use_count.

Hope that helps.

EDIT: This site has a bunch of good information about the Firefox databases: firefoxforensic.com

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