如何增加下载面板中显示的下载数量?


Answers:


9

此答案不再适用于较新的Firefox版本,但对于Firefox 20仍然有效,因此我一直在解决这个问题。

当前没有设置about:config可自定义此值。它在Firefox UI脚本中进行了硬编码。

  1. 右键点击Firefox.app,然后选择显示内容。导航到Contents/MacOSomni.ja文件并将其复制到您的桌面。重命名复制的文件omni.zip并解压缩。

  2. 更改文件omni/chrome/browser/content/browser/downloads/downloads.js。查找以下行:

      /**
       * Maximum number of items shown by the list at any given time.
       */
      kItemCountLimit: 3,
    

    将该值替换为例如10

  3. 更改文件omni/modules/DownloadsCommon.jsm。查找以下行:

    if (PrivateBrowsingUtils.isWindowPrivate(aWindow)) {
      if (this._privateSummary) {
        return this._privateSummary;
      }
      return this._privateSummary = new DownloadsSummaryData(true, aNumToExclude);
    } else {
      if (this._summary) {
        return this._summary;
      }
      return this._summary = new DownloadsSummaryData(false, aNumToExclude);
    

    替换的出现aNumToExclude10

  4. 保存这两个文件,压缩的内容omni目录(使产生的存档并不能包含名为顶级文件夹omni)。将结果文件重命名为omni.ja(通过文件的“ 获取信息”对话框-.ja不是已知的文件扩展名,否则Finder可能会将其解释为omni.ja.zip)。

  5. 将原始omni.ja文件替换为修改后的文件。

  6. 通过Option在开始应用更改时按住不放,以安全模式重新启动Firefox 。

结果:

屏幕截图


请记住,每次更新Firefox时都需要重新应用上述更改。


1
相同的方法应在Windows(可能是Linux)上运行。该omni.ja文件位于Firefox的根安装目录中,通常%ProgramFiles(x86)\Mozilla Firefox在64位版本的Windows或%ProgramFiles%\Mozilla Firefox32位版本的Windows上。
鲍勃
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.