/usr/share/xul-ext/greasemonkey/modules/extractMeta.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 | var EXPORTED_SYMBOLS = ['extractMeta'];
var gAllMetaRegexp = new RegExp(
'^(\u00EF\u00BB\u00BF)?// ==UserScript==([\\s\\S]*?)^// ==/UserScript==', 'm');
/** Get just the stuff between ==UserScript== lines. */
function extractMeta(aSource) {
var meta = aSource.match(gAllMetaRegexp);
if (meta) return meta[2].replace(/^\s+/, '');
return '';
}
|