mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Code cleanup.
This commit is contained in:
parent
951277e922
commit
6ce7b81124
7 changed files with 10 additions and 38 deletions
33
lib/main.js
33
lib/main.js
|
@ -27,39 +27,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
// const observers = require("sdk/system/events");
|
||||
// const {intercept} = require("./intercept");
|
||||
// const {errorToCallingStack} = require("./callingStack.js");
|
||||
// const {ask} = require("./askForPermission");
|
||||
// function interceptWrapper(ev){
|
||||
// intercept(ev, {
|
||||
// check,
|
||||
// ask: function(data){
|
||||
// return ask(
|
||||
// data,
|
||||
// {
|
||||
// _,
|
||||
// prefs: function(name){
|
||||
// return prefs[ev.data];
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// },
|
||||
// notify: function(data, window){
|
||||
// notify(
|
||||
// data,
|
||||
// {
|
||||
// lists, _, notificationPref, window
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// observers.on("content-document-global-created", interceptWrapper);
|
||||
// unload(function(){
|
||||
// observers.off("content-document-global-created", interceptWrapper);
|
||||
// });
|
||||
|
||||
const {Cc, Ci} = require("chrome");
|
||||
var globalMM = Cc["@mozilla.org/globalmessagemanager;1"].getService(Ci.nsIMessageListenerManager);
|
||||
var frameURL = require("sdk/self").data.url("frame.js?" + Math.random());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue