[译]Firefox代码项目搜索栏
By robot-v1.0
本文链接 https://www.kyfws.com/applications/firefox-code-project-search-bar-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 5 分钟阅读 - 2462 个词 阅读量 0[译]Firefox代码项目搜索栏
原文地址:https://www.codeproject.com/Articles/10549/Firefox-Code-Project-Search-Bar
原文作者:Lowell Heddings
译文由本站 robot-v1.0 翻译
前言
A direct port of the Code Project Search Bar, but for Firefox instead of IE.
Code Project搜索栏的直接端口,但用于Firefox而不是IE.
内容(Contents)
介绍(Introduction)
Firefox代码项目SearchBar是(The Firefox Code Project SearchBar is a direct port of the) IE代码项目SearchBar(IE Code Project SearchBar) 到Firefox浏览器.它具有几乎所有相同的功能-您仍然可以随时从任何网页进行搜索…,但是现在有了Firefox,您可以选择在新标签页中打开搜索结果.(to the Firefox browser. It gives you almost all the same features - you can still do searches at any time, from any web page… but now you have the option of opening search results in a new tab, thanks to Firefox.)
- Firefox代码项目SearchBar主页(Firefox Code Project SearchBar Home Page) 看起来是这样的:(Here’s what it looks like:)
系统要求(System requirements)
Firefox 1.0或更高版本,在1.0.3和1.0.4上进行了测试.(Firefox 1.0 or later, tested on 1.0.3 and 1.0.4.)
SearchBar功能(SearchBar features)
快速搜寻(Quick searching)
您可以使用与IE工具栏相同的方式进行搜索-只需单击按钮并搜索文章文本即可.或者,您可以单击按钮右侧的小箭头,然后从几个不同的选项中进行选择.(You can search the same way as the IE toolbar does - you can just click the button and search the article text. Alternatively, you can click the little arrow on the right hand side of the button, and choose from a few different options.)
您会在工具栏的0.3版本中注意到一个新选项,即Google搜索选项.此搜索选项使用Google搜索CodeProject,这比总是键入站点www.codeproject.com作为Google的关键字要容易得多.是的,我知道在Firefox中进行快速搜索.)(You’ll notice a new option in the 0.3 version of the toolbar, a Google search option. This search option uses Google to search CodeProject, which is much easier than always typing the site: www.codeproject.com as a keyword into Google. And yes, I know about quick searches in Firefox.))
Firefox本身支持拖放搜索,因此您也可以在此工具栏上使用它.(Firefox natively supports drag and drop searching, so you can use that with this toolbar as well.)
代码项目网站链接(Code Project site links)
您可以单击"站点链接"按钮以查看指向站点各个区域的快捷菜单.这几乎是IE工具栏的直接副本,具有相同的有用功能.现在唯一缺少的主要功能是Code Project Web Service阅读器,我没有时间来添加.(You can click the Site Links button to see a menu of shortcuts to various areas of the site. This is an almost direct copy of the IE toolbar, with the same useful features. The only major feature that is missing right now is the Code Project Web Service reader, which I have not had the time to add.)
搜索栏主菜单(The SearchBar main menu)
单击CodeProject按钮旁边的向下箭头以查看控件菜单:(Click the down arrow next to the CodeProject button to see the control menu:)
您可以清除当前搜索历史记录或通过此菜单打开"选项"页面.您还可以更轻松地访问最新文章页面,我个人倾向于阅读该页面.(You can clear the current search history or open the Options page via this menu. You can also more easily get access to the latest articles page, which I personally tend to read a)很多(lot).(.)
SearchBar选项(SearchBar options)
请点击(Click)**选件(Options)**打开搜索栏选项对话框.这些选项是不言自明的.(to open the SearchBar options dialog. The options are fairly self-explanatory.)
版本0.3中的新选项:在新选项卡中打开站点链接.默认行为已更改为即使在使用新标签进行搜索的情况下也不会在新标签中打开网站链接.这样一来,您便可以轻松浏览所需的方式.(The new option in Version 0.3: Open Site Links in new tab. The default behavior has been changed to not open site links in a new tab even if you have the search using a new tab. This makes it a little easier to navigate the way you’d like.)
安装搜索栏(Installing the SearchBar)
如果您使用的是Firefox浏览器,则可以转到(If you are using the Firefox browser, you can go to the) 主页链接(homepage link) 并且您将看到类似于此的链接:(and you will see a link similar to this:)
点击(Click the)**现在安装(Install Now)**链接以安装工具栏,其余的工作由Firefox完成.您必须重新启动浏览器才能查看工具栏.(link to install the toolbar, and Firefox will do the rest. You will have to restart your browser in order to view the toolbar.)
卸载搜索栏(Uninstalling the SearchBar)
您可以卸载,甚至可以使用Firefox扩展管理器禁用搜索栏.(You can uninstall, or even just disable the SearchBar using the Firefox Extensions manager.)
致谢(Acknowledgements)
编写此SearchBar是为了通过以下方式直接对原始IE版本进行建模:(This SearchBar was written to directly model the original IE version by) 迈克尔`邓恩(Michael Dunn) .(.)
这是您可能希望获得的最大的XUL/Firefox工具栏教程的链接:(Here’s a link to the greatest XUL/Firefox toolbar tutorial that you could ever hope for:) 天生怪胎(Born Geek) .(.)
源代码(Source code)
我已经包含了该工具栏当前版本的源代码.我不会写完整的文章来解释它的工作原理,因为上面链接的BornGeek教程比我写的要好得多.在页面顶部下载源代码,并使用BornGeek上的说明将其编译为可以安装的扩展.(I’ve included the source code for the current version of this toolbar. I’m not going to write a full article to explain how it works, since the BornGeek tutorial linked above is much better than I could write. Download the source code at the top of the page, and use the instructions on BornGeek to compile it into an extension that you can install.)
修订记录(Revision history)
- v0.2-提交给Code Project的第一个版本,仍然缺少一些功能.(v0.2 - First version submitted to Code Project, lacking a few features still.)
- v0.3-新功能:Google CodeProject搜索,上下文菜单.(v0.3 - New features: Google CodeProject search, context menu.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C C# Javascript C++ WinXP Win2003 Windows Win2K Visual-Studio Dev 新闻 翻译