Chrome Extension Migration to Firefox

I have a chrome extension with a manifest.json file containing basically this:

"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"]
}

I am trying to create a firefox extension, I created all the structures, but still can not get it to work in firefox.

I think I wrote the XUL file incorrectly in / chrome / content.

I tried to write it like this:

<?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>

I don’t know that similarly json chrome file “matches” the Firefox extension.

+5
source share

All Articles