Firefox 3 地址栏自动完成依赖项
背景: 使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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