生活周遭

In My Circle

安装本地的firefox theme

一般firefox的extension都是打包成xpi文件的,本地的xpi文件直接用firefox打开就行了。可是firefox的theme却是打包成标准的jar文件的,直接打开本地的jar就不行了。简单的放在一个html文件的a标签内也不行,就变成下载了。
theme的安装需要一段javascript代码,这段代码可以直接从mozilla的add-on下载站引用就行了。以本地的TangoFF_2_0.jar为例,可以这么做,写一个简单的html文件,也不必求完整:
<head>
<script src="http://addons.mozine.org/js/install.js" type="text/javascript"></script>
</head>

[html:a href="./TangoFF_2_0.jar" 
   onclick="return installTheme(event,'TangoFF 2.0', 'images/default.png');" ]
 Install Theme Tango for Firefox 2.0
</a>

然后用Firefox打开,点机连接就可以了~

夜宴?晚饭。用p4命令行作打包修改中的changelist

Comments

Unregistered user Tuesday, November 14, 2006 1:28:25 AM

Marco von Hagen writes: Dear Leira, wanted to say thank you for you help installin TangoFF 2.0. worked perfect, even if I only could understand the code. Have a nice day Marco

Unregistered user Saturday, January 27, 2007 10:55:53 AM

Anonymous writes: It works, thx

Write a comment

New comments have been disabled for this post.