/usr/share/xul-ext/greasemonkey/modules/scriptResource.js is in xul-ext-greasemonkey 3.8-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | var EXPORTED_SYMBOLS = ['ScriptResource'];
Components.utils.import('chrome://greasemonkey-modules/content/scriptDependency.js');
Components.utils.import('chrome://greasemonkey-modules/content/util.js');
ScriptResource.prototype = new ScriptDependency();
ScriptResource.prototype.constructor = ScriptResource;
function ScriptResource(aScript) {
ScriptDependency.call(this, aScript);
this.type = 'ScriptResource';
}
ScriptResource.prototype.__defineGetter__('dataContent',
function ScriptResource_getDataContent() {
var binaryContents = GM_util.getBinaryContents(this.file);
return 'data:' + this.mimetype
+ ';base64,' + encodeURIComponent(btoa(binaryContents));
});
|