xpi.js
Unpack Firefox addon XPI files and extract their JavaScript source code.
Usage
var XPI = ; "./adblock_plus-2.6.7-sm+tb+fx+an.xpi" ; "./adblock_plus-2.6.7-sm+tb+fx+an.xpi" ;
Class: new XPI.SourceEmitter(path)
Event: 'script'
fileName
: Stringsource
: String
Event: 'overlay'
fileName
: Stringsource
: String
Class: new XPI.JSEmitter(path)
Event: 'javascript'
js.type === 'file'
fileName
: Stringsource
: String
js.type === 'script'
fileName
: Stringsource
: Stringline
: Number
js.type === 'attribute'
fileName
: Stringsource
: Stringline
: Numbertag
: StringeventType
: String
License
Copyright © 2015 Dave Herman
Licensed under the MIT License.