mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Added option to protect no part of the canvas API
This commit is contained in:
parent
8e628f9d13
commit
31bc324019
5 changed files with 17 additions and 3 deletions
|
@ -166,6 +166,11 @@
|
|||
return true;
|
||||
};
|
||||
}
|
||||
else if (protectedPart === "nothing"){
|
||||
return function(){
|
||||
return false;
|
||||
};
|
||||
}
|
||||
else {
|
||||
return function(parts){
|
||||
if (Array.isArray(parts)){
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
defaultValue: "readout",
|
||||
urlSpecific: true,
|
||||
options: [
|
||||
"readout", "input", "everything"
|
||||
"nothing", "readout", "input", "everything"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue