Home > Linux > 安装本地的firefox theme

安装本地的firefox theme

October 16th, 2006 Leave a comment Go to comments

一般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>

<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打开,点机连接就可以了~

Categories: Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.