web书签源码_如何通过搜索和书签关键字加快Web浏览

web书签源码

web书签源码

image

All browsers support keywords, which you can type into your address bar to quickly search or visit websites. Mozilla Firefox, Google Chrome, and Internet Explorer all have their own methods of setting keywords, some more hidden than others.

所有浏览器均支持关键字,您可以在地址栏中键入关键字以快速搜索或访问网站。 Mozilla Firefox,Google Chrome和Internet Explorer都有自己的设置关键字的方法,有些方法比其他方法隐藏得多。

Internet Explorer’s keyword features are particularly hard to find, relying on a registry hack and a little-known bookmark feature. Google Chrome makes this easier, although setting a bookmark keyword requires a trick. Firefox makes this easiest of all.

Internet Explorer的关键字功能特别难以找到,它依赖于注册表黑客和鲜为人知的书签功能。 尽管设置书签关键字需要技巧,但Google Chrome浏览器使此操作变得更容易。 Firefox使这一切变得最简单。

Mozilla Firefox –搜索关键字 (Mozilla Firefox – Search Keywords)

Firefox doesn’t include any predefined search keywords. To assign a search keyword, open the search box’s drop-down menu and select Manage Search Engines.

Firefox不包含任何预定义的搜索关键字。 要分配搜索关键字,请打开搜索框的下拉菜单,然后选择管理搜索引擎。

image

Select an installed search engine and click the Edit Keyword button.

选择一个已安装的搜索引擎,然后单击“编辑关键字”按钮。

image

For example, you can assign the keyword g to Google. Keywords can be a single letter or multiple letters.

例如,您可以将关键字g分配给Google。 关键字可以是单个字母或多个字母。

image

Once you’ve assigned a search keyword, you can quickly search in that search engine from the address bar. For example, if we assigned the keyword g to Google, we could type g test into the address bar to quickly search Google for the word “test.”

分配搜索关键字后,您可以从地址栏中快速在该搜索引擎中搜索。 例如,如果我们将关键字g分配给Google,则可以在地址栏中输入g test以快速在Google中搜索单词“ test”。

image

Mozilla Firefox –书签关键字 (Mozilla Firefox – Bookmark Keywords)

You can also assign keywords to bookmarks. First, open the bookmarks library window by clicking the Bookmarks or Show All Bookmarks options in the Firefox menu.

您也可以为书签分配关键字。 首先,通过单击Firefox菜单中的“书签”或“显示所有书签”选项打开书签库窗口。

image

Next, locate and select the bookmark you want to assign a keyword to. Click the More button to reveal the keyword option.

接下来,找到并选择要为其分配关键字的书签。 单击更多按钮以显示关键字选项。

image

Enter a keyword in the Keyword box. For example, we can assign the keyword htg to How-To Geek.

在“关键字”框中输入关键字。 例如,我们可以将关键字htg分配给How-To Geek。

image

After assigning the keyword,type it into the address bar to instantly open the bookmark. For example, we can type htg to open How-To Geek if we assigned the keyword above.

分配关键字后,将其输入地址栏以立即打开书签。 例如,如果我们分配了以上关键字,则可以键入htg来打开How-To Geek。

image

Google Chrome –搜索关键字 (Google Chrome – Search Keywords)

To assign a search keyword in Chrome, right-click in Chrome’s location bar and select Edit search engines.

要在Chrome中分配搜索关键字,请右键单击Chrome的位置栏中,然后选择编辑搜索引擎。

image

By default, each search engine has its domain name as a keyword.

默认情况下,每个搜索引擎都有其域名作为关键字。

image

This means that you can type the website’s domain name into the address bar, press space, and type your search query to search that website.

这意味着您可以在地址栏中键入网站的域名,按空格,然后键入搜索查询以搜索该网站。

image

You can also assign a shorter keyword. For example, you could assign the keyword ddg to DuckDuckGo. Then, you could type ddg into the location bar, press space, and type your search query.

您还可以分配一个较短的关键字。 例如,您可以将关键字ddg分配给DuckDuckGo。 然后,您可以在位置栏中输入ddg,按空格键,然后输入搜索查询。

image

Google Chrome –书签关键字 (Google Chrome – Bookmark Keywords)

There’s no obvious way to assign a keyword to a bookmark in Chrome. However, you can use the search keyword method to assign a keyword to any website.

在Chrome中,没有明显的方法将关键字分配给书签。 但是,您可以使用搜索关键字方法将关键字分配给任何网站。

Create a new search engine using the Add a new search engine box. However, instead of specifying a special URL with a %s in it, just type a web page’s address. Here we’re assigning the keyword htg to How-To Geek.

使用“添加新搜索引擎”框创建一个新的搜索引擎。 但是,不要指定其中带有%s的特殊URL,只需键入网页的地址即可。 在这里,我们将关键字htg分配给How-To Geek。

image

Type your keyword – htg in this case —  into the location bar, press Enter, and you’ll be taken to the website.

在位置栏中输入关键字(在这种情况下为htg) ,按Enter键,您将被带到网站。

image

Internet Explorer –搜索关键字 (Internet Explorer – Search Keywords)

Internet Explorer’s Quick Search feature allows you to define search keywords. In Windows XP, you could use Microsoft’s Tweak UI tool to create and customize IE quick searches. In newer versions of Windows, this feature is only configurable from the registry – it still works in Internet Explorer 9, though.

Internet Explorer的快速搜索功能允许您定义搜索关键字。 在Windows XP中,您可以使用Microsoft的Tweak UI工具来创建和自定义IE快速搜索。 在Windows的较新版本中,只能从注册表中配置此功能-尽管该功能仍可在Internet Explorer 9中使用。

First, find the search URL of the search engine you want to add. Let’s say we want to add DuckDuckGo. We’d go to DuckDuckGo’s website and perform a search for TEST, or another obvious word.

首先,找到要添加的搜索引擎的搜索URL。 假设我们要添加DuckDuckGo。 我们将访问DuckDuckGo的网站并搜索TEST或另一个明显的词。

image

After performing the search, we’ll look at the address bar for the search URL.

执行搜索后,我们将查看搜索URL的地址栏。

image

In this case, the URL is:

在这种情况下,URL为:

http://duckduckgo.com/?q=TEST

http://duckduckgo.com/?q=TEST

We’ll replace our query with %s, which means that our search URL is:

我们将用%s替换查询,这意味着我们的搜索URL为:

http://duckduckgo.com/?q=%s

http://duckduckgo.com/?q=%s

Now we have all the information we need. Fire up Notepad or another text editor and enter the following text to add DuckDuckGo:

现在我们有了所需的所有信息。 启动记事本或其他文本编辑器,然后输入以下文本以添加DuckDuckGo:

Windows Registry Editor Version 5.00

Windows注册表编辑器版本5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\ddg] @=”http://duckduckgo.com/?q=%s” “:”=”%3A”

[HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ SearchUrl \ ddg ] @ =“ http://duckduckgo.com/?q=%s” “:” =“%3A”

The important options are bolded. Here, we’ve assigned the keyword ddg to the search engine at http://duckduckgo.com/?q=%s. Change these two strings to your desired keyword and search engine URL.

重要选项以粗体显示。 在这里,我们已将关键字ddg分配给位于http://duckduckgo.com/?q=%s的搜索引擎。 将这两个字符串更改为所需的关键字和搜索引擎URL。

image

Save the file with the .reg file extension.

用.reg文件扩展名保存文件。

image

Double-click the .reg file and click Yes to add it to your registry.

双击.reg文件,然后单击“是”将其添加到注册表中。

image

After adding the .reg file, your keyword will immediately be available in Internet Explorer. For example, we could type ddg geek into the address bar and press Enter to perform a search for “geek” on DuckDuckGo.

添加.reg文件后,您的关键字将立即在Internet Explorer中可用。 例如,我们可以在地址栏中输入ddg geek并按Enter键以在DuckDuckGo上搜索“ geek”。

image

Internet Explorer –书签关键字 (Internet Explorer – Bookmark Keywords)

Microsoft doesn’t advertise this feature, but every favorite’s name functions as a keyword. To assign a keyword to a web page, add the web page as a favorite in Internet Explorer.

Microsoft不会宣传此功能,但是每个收藏夹的名称都充当关键字。 要将关键字分配给网页,请将该网页添加为Internet Explorer中的收藏夹。

image

Enter your desired keyword as the favorite’s name.

输入所需的关键字作为收藏夹的名称。

image

Type the name of the favorite into address bar and press Enter to go there immediately.

在地址栏中输入收藏夹的名称,然后按Enter键立即转到那里。

image

If you already have the web page saved as a favorite, you can right-click it to rename it. You can also create multiple favorites that point to the same web page, each with a different name.

如果您已经将该网页另存为收藏夹,则可以右键单击它以对其重命名。 您还可以创建指向同一网页的多个收藏夹,每个收藏夹都有不同的名称。

image


To add more search engines to your browser – whether or not they offer search plugins – check out our guide to adding any search engine to your browser.

要向您的浏览器添加更多搜索引擎(无论它们是否提供搜索插件),请查看我们的指南,以向您的浏览器添加任何搜索引擎

翻译自: https://www.howtogeek.com/114447/how-to-speed-up-web-browsing-with-search-bookmark-keywords/

web书签源码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值