1. 程式人生 > 實用技巧 >web書籤原始碼_如何通過搜尋和書籤關鍵字加快Web瀏覽

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書籤原始碼