Context Search Engines

来自Tsetien’s Wiki
跳到导航 跳到搜索
Firefox 使用 ‘Context Search Origin’
Chrome 使用 ‘Context Menu Search’
PotPlayer Word Searching 搜索引擎设置
PotPlayer Word Searching 上下文菜单效果

这个页面用来搜集整理可用于浏览器上下文选单中的搜索引擎。

在 Firefox 上,安装 Context Search Origin (AMO 地址), 然后在浏览器中按一下 Alt 键唤出主选单,然后点选 Bookmarks > Show All Bookmarks, 在新弹出的窗口中,于左侧找到 ‘Bookmarks Menu’, 然后在其下新建一个子文件夹,将其命名为 ‘Searches’, 然后将下方列表中需要的搜索引擎以「新建书签」的方式逐一添加到这个文件夹下,即可获得右边图示效果。

在 Chrome 上,安装 Context Menu Search (chrome web store 地址), 然后将下方列表中所需的搜索引擎逐一添加到该扩展的设置页面中即可获得右边图示的效果。添加完了之后注意要点保存。

在 Microsoft Edge 上,则要安装 Simple = Select + Search (Edge Add-ons 地址), 然后将下方列表中所需的搜索引擎逐一添加到该扩展的设置页面中即可获得右边图示中类似 Chrome 的效果。

在 PotPlayer 上,在任意位置按下滑鼠辅键,点选 ‘Preferences…’, 在弹出来的窗口的左边,找到 ‘Subtitles’, 点开后找到 ‘Word Searching’ 便可以在右边添加需要的搜索引擎了。

惟须注意的是,下方列表的地址中写作 %s 的部分,在添加 PotPlayer 的 Word Searching 引擎时,须改写为 %%SS. 以及,PotPlayer 在查词时,如果直接点击则默认使用排位第一的搜索引擎,只有在单词上按下滑鼠辅键时才给出其他选项。PotPlayer 的设置页面及最终效果如右图所示。

搜索引擎列表

  • Google Translate
    https://translate.google.com/?sl=auto&tl=en&text=%s&op=translate
  • DeepL Translate
    https://www.deepl.com/translator#auto/zh/%s
  • Bing Dict
    https://cn.bing.com/dict/search?qs=ds&form=Z9LH5&q=%s
  • Google Dict
    https://www.google.com/search?q=define:%s
  • Wiktionary
    https://en.wiktionary.org/w/index.php?title=Special%3ASearch&search=%s
  • Wikipedia
    https://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=%s
  • 維基百科
    https://zh.wikipedia.org/w/index.php?title=Special%3ASearch&search=%s
  • YouTube
    https://www.youtube.com/results?search_query=%s
  • Twitter
    https://twitter.com/search?q=%s&f=live
  • 豆瓣图书
    https://www.douban.com/search?cat=1001&q=%s
  • 豆瓣影剧
    https://www.douban.com/search?cat=1002&q=%s
  • 全豆瓣
    https://www.douban.com/search?q=%s
  • 中亚电子书
    https://www.amazon.cn/s?k=%s&i=stripbooks
  • IMDb
    https://www.imdb.com/find?s=all&q=%s
  • LibraryThing
    https://www.librarything.com/search.php?search=%s
  • Goodreads
    https://www.goodreads.com/search?&q=%s
  • Reddit
    https://www.reddit.com/search/?q=%s
  • Google Maps
    https://www.google.com/maps/search/%s
  • GitHub
    https://github.com/search?type=&q=%s&o=desc&s=updated
  • PyPI
    https://pypi.org/search/?q=%s
  • Firefox Add-ons (AMO)
    https://addons.mozilla.org/firefox/search/?platform=windows&q=%s&sort=relevance&type=extension
  • chrome web store
    https://chrome.google.com/webstore/search/%s?_category=extensions
  • Edge Add-ons
    https://microsoftedge.microsoft.com/addons/search/%s
  • Greasy Fork
    https://greasyfork.org/scripts?q=%s&filter_locale=0&sort=updated
  • Startpage
    https://www.startpage.com/do/dsearch?query=%s
  • Brave Search
    https://search.brave.com/search?q=%s
  • Bing Search
    https://www.bing.com/search?q=%s
  • Яндекс
    https://yandex.com/search/?text=%s
  • DuckDuckGo
    https://duckduckgo.com/?q=%s
  • Yahoo Search
    https://search.yahoo.com/search?p=%s
  • Libgen
    https://libgen.is/search.php?req=%s&res=100

其他注意事项

上方列表的第一项 ‘Bing Dict’ 在单次浏览器会话中的第一次使用一定会是失败的(失败的效果就是 Bing 告诉你什么都没搜到),这时候需要在失败的页面上等待,不要刷新,就干等,等待大概 20 到 30 秒(等 30 秒是最保险的),看到整个页面完全加载完了,然后关掉这个标签页。后续的搜索就不会失败了。

同样还是 ‘Bing Dict’. 如果不想看到搜索结果里的小图片部分,则可以把 bing.com##.img_area 手动添加到 uBlock Origin 的设置中,如果不想看到下方例句中画蛇添足的全句拼音标注,则可以把 bing.com##.b_regtxt.sen_ime 手动添加到 uBlock Origin 的设置中。再配合 uBlock Origin 本来就能够屏蔽的广告部分,Bing Dict 可以说是目前能够找得到的最清爽的中英查词网站了。

除此之外,上方列表中还有一些搜索引擎被加入了限定条件以及排序规则,比如 Twitter 按时间 (&f=live), GitHub 按更新时间 (&o=desc&s=updated), AMO 按相关性 (&sort=relevance) 并指定了平台为 Windows (platform=windows), chrome web store 指定了搜索类别为扩展 (_category=extensions), 以及 Greasy Fork 指定了按更新时间排序 (&sort=updated) 并进行全语种搜索 (&filter_locale=0). 如果不喜欢这些限定条件或者排序规则,只要去掉相应的链接「块」就好了。

当然也可以改,比如把 Greasy Fork 的按更新时间排序 (&sort=updated) 改为按评分 (&sort=ratings), 或者直接删去这一「块」,即为默认的按每日安装量排序。

但是我之所以加入这些限定条件或者排序规则并不是没有原因的。比如给 GitHub 和 Greasy Fork 都加入了按更新时间排序但是却没有给 PyPI 加,是因为在实践中我发现给 GitHub 和 Greasy Fork 加但不给 PyPI 加「按更新时间排序」在绝大多数情况下都是最好的「预设值」。

还有一点就是,其实那个 ‘Google Dict’ 和普通的 ‘Google’ 也没什么差,因为早在 2011 年 Google 就把 Google Dictionary 完全地融入到了 Google Search 中了。不过,在实践中我发现,如果你加入 ‘define:’ 这个搜索口令(也就是这里所谓的 Google Dict),则 Google 会优先给你返回很多网络词典的搜索结果。因此也还算是有一点用处。而且当在搜索中加入 ‘define:’ 口令后,后面的内容即使含带空格也无需用笨引号引起来(如果你想做一次「精准匹配」搜索的话),因为有了 ‘define:’ 口令,Google 就自动默认后面的全都是一个要查的词(组)。