mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 03:56:26 +02:00
Monitoring only the necessary functions -> changes of the mode or the white/black lists only affects new loaded pages.
Fixes #84.
This commit is contained in:
parent
b2823cbd8d
commit
82bb25d0f2
2 changed files with 51 additions and 46 deletions
|
@ -111,7 +111,7 @@
|
|||
getStatus: function(obj, status){
|
||||
if (hasType(status, "input")){
|
||||
var contextType = canvasContextType.get(obj);
|
||||
status.active = contextType && contextType !== "2d";
|
||||
status.active = contextType !== "2d";
|
||||
}
|
||||
else {
|
||||
status.active = hasType(status, "readout");
|
||||
|
@ -131,7 +131,7 @@
|
|||
getStatus: function(obj, status){
|
||||
if (hasType(status, "input")){
|
||||
var contextType = canvasContextType.get(obj);
|
||||
status.active = contextType && contextType !== "2d";
|
||||
status.active = contextType !== "2d";
|
||||
}
|
||||
else {
|
||||
status.active = hasType(status, "readout");
|
||||
|
@ -152,7 +152,7 @@
|
|||
getStatus: function(obj, status){
|
||||
if (hasType(status, "input")){
|
||||
var contextType = canvasContextType.get(obj);
|
||||
status.active = contextType && contextType !== "2d";
|
||||
status.active = contextType !== "2d";
|
||||
}
|
||||
else {
|
||||
status.active = hasType(status, "readout");
|
||||
|
@ -172,7 +172,7 @@
|
|||
getStatus: function(obj, status){
|
||||
if (hasType(status, "input")){
|
||||
var contextType = canvasContextType.get(obj);
|
||||
status.active = contextType && contextType !== "2d";
|
||||
status.active = contextType !== "2d";
|
||||
}
|
||||
else {
|
||||
status.active = hasType(status, "readout");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue