mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Introduced maxFakeSize.
This commit is contained in:
parent
8240bf6007
commit
b8ba76300e
7 changed files with 37 additions and 23 deletions
|
@ -34,17 +34,18 @@
|
|||
token
|
||||
)[0];
|
||||
},
|
||||
prefs: function(name){
|
||||
return sendSyncMessage(
|
||||
"canvasBlocker-pref-get",
|
||||
name
|
||||
)[0];
|
||||
}
|
||||
prefs
|
||||
});
|
||||
}
|
||||
function notify(data){
|
||||
sendAsyncMessage("canvasBlocker-notify", data);
|
||||
}
|
||||
function prefs(name){
|
||||
return sendSyncMessage(
|
||||
"canvasBlocker-pref-get",
|
||||
name
|
||||
)[0];
|
||||
}
|
||||
|
||||
function interceptWrapper(ev){
|
||||
if (enabled){
|
||||
|
@ -55,7 +56,7 @@
|
|||
var window = ev.target.defaultView;
|
||||
intercept(
|
||||
{subject: window},
|
||||
{check, ask: askWrapper, notify}
|
||||
{check, ask: askWrapper, notify, prefs}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue