safari添加黑名单_如何向Safari中添加搜索关键字以实现更快,更具体的搜索

safari添加黑名单

safari添加黑名单

Most people use one search engine—Google, DuckDuckGo, etc.—to find things online. But sometimes you want to quickly search Amazon, ask a question of Wolfram Alpha, or find a video on YouTube, all without the extra step of going to that site first.

大多数人使用一个搜索引擎-Google,DuckDuckGo等-在线查找内容。 但是有时您想要快速搜索亚马逊,询问Wolfram Alpha的问题或在YouTube上找到视频,而无需先去该网站的额外步骤。

If you’re using Chrome, you can set up search keywords to search specific sites from the address bar. There’s no way to do that by default in Safari, but a free Safari extension called Safari Keyword Search makes it easy to search a number of sites. So typing y kittens in the address bar searches YouTube for kittens or typing wa warp 9 asks Wolfram Alpha how fast Warp 9 is.

如果您使用的是Chrome,则可以设置搜索关键字以从地址栏中搜索特定的网站。 在Safari中,默认情况下无法执行此操作,但是免费的Safari扩展名为Safari关键字搜索使搜索多个站点变得容易。 因此,在地址栏中输入y kittens在YouTube上搜索小猫,或者输入wa warp 9询问Wolfram Alpha Warp 9有多快。

Here’s how to set up this power, and how to customize it.

这是设置此功能以及自定义该功能的方法。

安装Safari关键字搜索 (Installing Safari Keyword Search)

We’ll be using an open-source extension called Safari Keyword  Search to make this happen. Head to the Safari Keyword Search homepage and download the extension. It comes in the form of a .safariextz file.

我们将使用名为Safari关键字搜索的开源扩展来实现这一目标。 前往Safari关键字搜索首页并下载扩展程序。 它以.safariextz文件的形式出现。

Open the file and Safari will ask if you want to install it.

打开文件,Safari会询问您是否要安装它。

Click “Trust,” assuming that you do trust the extension. The source code is on GitHub if you’re interested.

假设您确实信任该扩展名,请单击“信任”。 如果您有兴趣, 源代码位于GitHub上。

使用默认关键字运行搜索 (Running a Search Using the Default Keywords)

The extension, by default, supports 12 keywords. Put a keyword at the front of your search queries and Safari will use that search engine. For example, if you want to ask Wolfram Alpha what Warp 9 is, you only need to type wa warp 9 in the address bar, then hit “Enter.”

该扩展默认情况下支持12个关键字。 在搜索查询的前面放置一个关键字,Safari将使用该搜索引擎。 例如,如果要询问Wolfram Alpha,什么是Warp 9,只需在地址栏中键入wa warp 9 ,然后按“ Enter”。

Wolfram Alpha will open with your information.

Wolfram Alpha将打开您的信息。

You’ll need to learn the keywords in order to use this, but for the most part they’re straight forward. Here’s the default list:

您需要学习关键字才能使用它,但是在大多数情况下,它们是直接的。 这是默认列表:

  • a: amazon.com

    答:amazon.com
  • d: duckduckgo.com

    d:duckduckgo.com
  • down: downforeveryoneorjustme.com

    向下:downforeveryoneorjustme.com
  • e: ebay.com

    电子邮件:ebay.com
  • g: google.com

    g:google.com
  • gl: google.com (using “I’m feeling lucky”)

    gl:google.com(使用“我很幸运”)
  • gm: maps.google.com

    gm:maps.google.com
  • imdb: imdb.com

    imdb:imdb.com
  • so: stackoverflow.com

    所以:stackoverflow.com
  • w: en.wikipedia.org

    w:en.wikipedia.org
  • wa: wolframalpha.com

    wa:wolframalpha.com
  • y: youtube.com

    y:youtube.com

If all you want is to quickly search one of these sites, you’re done. But you can take things a little bit further if you like.

如果您想要快速搜索这些站点之一,那么您就完成了。 但是,如果您愿意,可以将事情做得更远。

添加您自己的搜索引擎 (Adding Your Own Search Engines)

To customize your list of search engines, right-click on any site. You’ll see an option for “Keyword Search Settings.”

要自定义搜索引擎列表,请右键单击任何站点。 您会看到“关键字搜索设置”的选项。

Click this and the settings screen will open.

单击此按钮,将打开设置屏幕。

To add a new search query, click the “+” button at the bottom-left. A new item will be created, which you’ll need to fill in.

要添加新的搜索查询,请点击左下角的“ +”按钮。 将创建一个新项目,您需要填写。

You’ll need two things: a keyword and a search URL. The keyword is easy: just choose a short term for launching searches.

您将需要两件事:关键字和搜索URL。 关键字很简单:只需选择一个短期即可启动搜索。

The URL is a little more complicated. If you just want Google to search a specific site for you, adding https://www.google.com/#q=@@@+site:howtogeek.com&\* works—just replace “howtogeek.com” with whatever site it is you want Google to search.

该URL稍微复杂一些。 如果您只希望Google为您搜索特定站点,则添加https://www.google.com/#q=@@@+site:howtogeek.com&\* -只需将“ howtogeek.com”替换为任何站点您要Google搜索。

But creating direct links for any site isn’t hard. Just go to any site, then search for a specific word; I like to use “asdf.” After running the search, look at the URL.

但是为任何站点创建直接链接并不难。 只需转到任何站点,然后搜索特定的单词即可; 我喜欢使用“ asdf”。 运行搜索后,查看URL。

Replace your search term in the URL (in this case, asdf ) with @@@ and you’ve got the URL you need for Safari Keyword Search.

@@@替换URL(在本例中为asdf )中的搜索词,您将获得Safari关键字搜索所需的URL。

Once you set up the keyword and the URL, click “Save” and you can start using the new keyword immediately. Enjoy!

设置关键字和URL后,单击“保存”,即可立即开始使用新关键字。 请享用!

翻译自: https://www.howtogeek.com/298221/how-to-add-search-keywords-to-safari-for-faster-more-specific-searches/

safari添加黑名单

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值