如何从DuckDuckGo上的Firefox浏览器搜索中删除`t = canonical`?

在Ubuntu 14.04中,当我使用地址栏或搜索栏在Firefox中进行搜索时,系统总是在我的搜索中添加t=canonical 。 因此,完整的字符串变为: https://duckduckgo.com/?q=cat+cooking+salmon&t=canonicalhttps://duckduckgo.com/?q=cat+cooking+salmon&t=canonical

但是,如果我通过直接进入搜索引擎执行相同的搜索,即输入搜索引擎名称并从显示的搜索框中进行搜索,则不会发生这种情况。 在这种情况下,字符串是: https://duckduckgo.com/?q=cat+cooking+salmonhttps://duckduckgo.com/?q=cat+cooking+salmon

Search made directly by going to DuckDuckGo

如何阻止Ubuntu / Firefox在我的搜索查询中添加t=canonical ? 而且,为什么这种行为首先出现在那里?

&T =

通过与开发人员和公司的合作,DuckDuckGo已经集成到许多应用程序中。 在这些合作伙伴关系中,DuckDuckGo的一部分广告收入有时会被回馈。 为了分配广告收入并收集匿名聚合使用信息,开发人员为通过其应用程序进行的搜索添加了唯一的“&t =”参数。

如果要删除它,请编辑该文件:

 /usr/lib/firefox/distribution/searchplugins/locale/*language-here* 

编辑所有语言只是为了确定。

在此处输入图像描述

资料来源: DuckDuckGo论坛

读取apt-cache show xul-ext-ubufox 。 这是部分报价:

 Package: xul-ext-ubufox Priority: optional Section: web Installed-Size: 378 Maintainer: Ubuntu Mozilla Team  Architecture: all Source: ubufox Version: 2.8-0ubuntu1 Replaces: ubufox (<< 0.9~rc2-0ubuntu3) Provides: firefox-ubufox, ubufox Depends: aptdaemon, libglib2.0-0 (>= 2.26) Recommends: firefox (>= 9.0) ... Description-en: Ubuntu-specific configuration defaults and apt support for Firefox Adds Ubuntu-specific modifications to Firefox. . Integrates the browser with Ubuntu to: * Enable searching for missing plugins from Ubuntu software catalog * Add the following options to the Help menu - Get help on-line - Help translating Firefox - Ubuntu Release Notes * Set homepage to Ubuntu Start Page * Display a restart notification after upgrading Firefox * Add ask.com to the search engines. . You can uninstall this if you prefer to use a pristine Firefox install. Enhances: firefox Homepage: https://launchpad.net/ubufox 

注意第三行。

至于为什么,Canonical可能会赚取一些收入,但这只是猜测。

我在Xubuntu 16.04.4(64位)上使用Firefox 60.0.1。 我遇到了同样的问题。 米奇提供的选择答案对我不起作用。 相反,我通过以下过程解决了该问题:

  1. 打开Firefox,导航到首选项 – >搜索,然后删除预安装的DuckDuckGo搜索引擎
  2. 从Firefox Add-ons目录中重新下载搜索引擎; 它可以在这里找到
  3. 选择此选项作为首选项中的默认搜索引擎

字符串&t=canonical ,此后不再通过地址栏插入我的搜索。

我不能告诉你为什么行为首先出现在那里。

以上答案不适用于新版本的Firefox。 因此,我建议从官方网站下载firefox并制作符号链接

 sudo ln -s /path_to_downloaded_firefox_executable_file /usr/bin/firefox 

要从firefox搜索字符串中删除“规范”和其他非标准的ubuntu内容,请删除“/ usr / lib / firefox / distribution / searchplugins / locale /”目录的内容。