mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
Simplified require-gathering.
This commit is contained in:
parent
48c04ee33f
commit
bfaffc98df
@ -5,23 +5,10 @@
|
|||||||
(function(){
|
(function(){
|
||||||
"use strict";
|
"use strict";
|
||||||
const {utils: Cu} = Components;
|
const {utils: Cu} = Components;
|
||||||
var chrome = {
|
|
||||||
Cc: Components.classes,
|
|
||||||
Ci: Components.interfaces,
|
|
||||||
Cm: Components.manager,
|
|
||||||
Cr: Components.results,
|
|
||||||
Cu: Components.utils,
|
|
||||||
CC: Components.Constructor,
|
|
||||||
components: Components,
|
|
||||||
ChromeWorker: undefined
|
|
||||||
};
|
|
||||||
const { Loader, Require, unload, Module} = Components.utils.import('resource://gre/modules/commonjs/toolkit/loader.js');
|
const { Loader, Require, unload, Module} = Components.utils.import('resource://gre/modules/commonjs/toolkit/loader.js');
|
||||||
var loader = Loader({
|
var loader = Loader({
|
||||||
paths: {
|
paths: {
|
||||||
"": "resource://gre/modules/commonjs/"
|
"": "resource://gre/modules/commonjs/"
|
||||||
},
|
|
||||||
modules: {
|
|
||||||
"chrome": chrome
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var requirer = Module("resource://canvasblocker-at-kkapsner-dot-de/data/frame.js", "./data/frame.js");
|
var requirer = Module("resource://canvasblocker-at-kkapsner-dot-de/data/frame.js", "./data/frame.js");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user