怎样在火狐中新建个协议然后调用某软件

Published by Xianqiao Wang on June 17th, 2014

关闭浏览器,在mimetype.rdf文件(配置目录内,可以从about:support查询)中,找到

<RDF:Seq RDF:about="urn:schemes:root">

节点,在其中添加

<RDF:li RDF:resource="urn:scheme:magnet"/>


</RDF:Seq>

之后添加

<RDF:Description RDF:about="urn:scheme:magnet" NC:value="magnet">
    <NC:handlerProp RDF:resource="urn:scheme:handler:magnet"/>
</RDF:Description>

最后看起来就是这样
  1.   ...
  2. <RDF:Seq RDF:about="urn:schemes:root">
  3. ...
  4.     <RDF:li RDF:resource="urn:scheme:magnet"/>
  5.   </RDF:Seq>
  6.   <RDF:Description RDF:about="urn:scheme:magnet" NC:value="magnet">
  7.     <NC:handlerProp RDF:resource="urn:scheme:handler:magnet"/>
  8.   </RDF:Description>
  9. ...
启动浏览器之后,在应用程序选项卡中找到magnet,指定关联的程序
http://g.mozest.com/viewthread.php?tid=34391