我有一个chrome扩展和一个manifest.json文件,基本上包含以下内容:
"content_scripts": [
{
"matches": ["*://mail.google.com/mail/*"],
"js": ["safegmailbootstrap.js","cryptojs/rollups/aes.js", "javascrypt/aes.js", "javascrypt/md5.js", "javascrypt/aesprng.js", "javascrypt/jscrypt.js", "javascrypt/entropy.js"]
}我正在尝试构建一个firefox扩展,我已经创建了所有的结构,但仍然无法在firefox中工作。
我想我在/chrome/content中写的XUL文件是错误的。
我试着这样写:
<?xml version="1.0"?>
<overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="safegmailbootstrap.js" />
<script src="cryptojs/rollups/aes.js" />
<script src="javascrypt/aes.js" />
<script src="javascrypt/md5.js" />
<script src="javascrypt/aesprng.js" />
<script src="javascrypt/jscrypt.js" />
<script src="javascrypt/entropy.js" />
</overlay>我不知道哪个是类似于json chrome文件"matches“的firefox扩展。
发布于 2012-07-18 10:35:20
https://stackoverflow.com/questions/11531041
复制相似问题