mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-18 09:28:52 +01:00
parent
e4c65d415e
commit
b2823cbd8d
@ -79,11 +79,24 @@
|
|||||||
exports.changedFunctions = {
|
exports.changedFunctions = {
|
||||||
getContext: {
|
getContext: {
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
return {
|
if (hasType(status, "internal")){
|
||||||
mode: hasType(status, "block")? "block": "fake",
|
return {
|
||||||
type: status.type,
|
mode: "allow",
|
||||||
active: true
|
type: status.type,
|
||||||
};
|
active: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (hasType(status, "context") || hasType(status, "input")){
|
||||||
|
return {
|
||||||
|
mode: (status.mode === "block")? "block": "fake",
|
||||||
|
type: status.type,
|
||||||
|
active: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
status.active = false;
|
||||||
|
return status;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
object: "HTMLCanvasElement",
|
object: "HTMLCanvasElement",
|
||||||
fakeGenerator: function(prefs, notify){
|
fakeGenerator: function(prefs, notify){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user