[firefox]about URL scheme - 20110422更新

(5,521 views)
April 22, 2011

喜欢折腾firefox的都知道,firefox支持一种形如about:xxx的内建URL,用来呈现某些内建功能。

目前,about URL scheme还没有标准化,不过IETF正在着手标准化工作,已经有了草案
尽管还未标准化,但是现在主流的浏览器都有自己不程度的支持,包括IE。

今天主要说说firefox的about URL scheme。
以下这些URLs都可以输入到地址栏,用标签呈现内容。(以下以firefox4为例)

  • about:about
  • 列出当前支持的所有about地址。

  • about
  • 显示当前firefox的基本信息

  • about:logo
  • 显示about页面的logo

  • about:blank
  • 显示一个空白页面,这个大家都熟悉,基本上所有浏览器都支持

  • about:copyright
  • 显示firefox采用的软件license信息 – firefox采用Mozilla Public License

  • about:license
  • 显示Mozilla Public License的具体内容

  • about:credits
  • 显示firefox项目的contributors信息

  • about:home
  • 显示firefox的默认主页

  • about:buildconfig
  • 显示当前firefox使用的build的构建信息

  • about:addons
  • 显示扩展管理页面

  • about:plugins
  • 显示安装的插件信息

  • about:privatebrowsing
  • 显示privatebrowsing模式切换页面,可以用来切换隐私浏览模式。

  • about:cache
  • 显示cache的使用信息,甚至可以查看到每条cache的存储
    另外注意:磁盘cache较多的话,点击查看列表前要谨慎,以防假死。

  • about:memory
  • 显示当前内存使用状况

  • about:sessionrestore
  • 显示sessionrestore操作页面,可以用来重新恢复上次session中的标签

  • about:crashes
  • about:config
  • 这个也常用,用来设置preferrences

  • about:support
  • 打开support页面,等同于点击菜单Help -> Troubleshooting Information
    可以用来打开profile文件夹,查看firefox版本,查看安装的扩展和插件,查看已修改的preferrences,查看Graphics信息

  • about:sync-log
  • 查看同步的log

  • about:sync-tabs
  • 打开同步tabs管理页面,用来从其他电脑同步标签页,这个比较有用。

    下面两个是彩蛋:

  • about:mozilla
  • 显示一段来自The Book of Mozilla的节选

  • about:robots
  • 这个菜单开始于March 8, 2008 trunk builds,在bugzilla里还有个bug track

    还有一些没有列在about:about页面的

  • about:blocked
  • 显示恶意软件保护页面

  • about:certerror
  • 显示“SSL/TLS证书不能验证时的错误”页面

  • about:feeds
  • 显示“点击地址栏的rss订阅图标时弹出的”页面

  • about:neterror
  • 显示“地址不能访问时使用的”页面

(5,521 views)

6 Responses to [firefox]about URL scheme

  1. soulpower89 says:

    博主好,我是FX新手,目前想要空白页透明的效果,安装Stylish实现了,但是只是为了实现这个小小的网页界面定制就安装了一个扩展有点浪费,自己又不想探索Stylish的其他乐趣,所以想问问空白页透明能不能通过css来实现,我自己试了一些未果,google了半天也没搜到相关信息,特来求助。
    Stylish的空白页透明代码如下
    <@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

    #appcontent,
    #content > tabbox > tabpanels {
    background-color: transparent !important;
    }

    #main-window[inFullscreen="true"]{
    -moz-appearance: -moz-win-borderless-glass !important;
    background: none !important;
    }

    #main-window[stylish-url="about:blank"]:not([onclose^="PrintUtils"]):not([title^="View Source Chart"]) #content browser{
    opacity: 0 !important;
    }>

    • admin says:

      不知道userChrome.css里支不支持@-moz-document
      把下面css放到userChrome.css试试看
      #appcontent, #content > tabbox > tabpanels {
      background-color: transparent !important;
      }
      #main-window[inFullscreen="true"]{
      -moz-appearance: -moz-win-borderless-glass !important;
      background: none !important;
      }
      @-moz-document url(about:blank) {
      #main-window:not([onclose^="PrintUtils"]):not([title^="View Source Chart"]) #content browser{
      opacity: 0 !important;
      }
      }

      我没有win7系统,不能验证。

      如果不行的话,你可以尝试向alan请教,他是css大牛。

  2. ray says:

    不知为什么,我这里 输入 about:neterror ,提示说“Firefox 因未知原因无法载入此页面。”

    请问,理论来上,这个页面是否会记录那些被重置的URL呢?

    • admin says:

      about:neterror是个页面模板,当遇到neterror时才会填充内容显示出来。
      你直接输入url访问就是提示说”Firefox 因未知原因无法载入此页面。”

      “记录那些被重置的URL”可能可以写个脚本来记录保持。

  3. error 404 says:

    哎呀。
    Firefox 因未知原因无法载入此页面。

    小狐狸又在卖萌了XD

①若要贴代码,请将 "<" 改成 "&lt;",">" 改成 "&gt;".
②若要从他人留言中复制代码,注意检查引号可能是中文的,请手动修改成英文符号,避免不能工作