1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-09-23 10:01:40 +02:00

Added option to protect no part of the canvas API

This commit is contained in:
kkapsner 2019-04-27 22:37:25 +02:00
parent 8e628f9d13
commit 31bc324019
5 changed files with 17 additions and 3 deletions

View File

@ -344,13 +344,17 @@
"description": "" "description": ""
}, },
"protectedCanvasPart_description": { "protectedCanvasPart_description": {
"message": "Auslese: die Auslese-Funktionen der Canvas-API werden beschützt.\n\nEingabe: die Ausgabe-Funktionen der Canvas-API werden beschützt. Mit dem Blockiermodus \"vortäuschen\" werden bei der Darstellung von Text die beschriebenen Pixel leicht verändert. Dies erschwert die Detektion des Add-ons, ist aber weniger sicher. Bei WebGL-Canvas ist das Verhalten identisch zu \"Auslese\".\n\nAlles: sowohl Auslese- als auch Eingabe-Funktionen werden beschützt. Es wird empfohlen diese nicht mit dem Blockiermodus \"vortäuschen\" zu verwenden, da es die Wahrscheinlichkeit erhöht detektiert zu werden.", "message": "Nichts: keinerlei Funktionen der Canvas-API werden beschützt.\n\nAuslese: die Auslese-Funktionen der Canvas-API werden beschützt.\n\nEingabe: die Ausgabe-Funktionen der Canvas-API werden beschützt. Mit dem Blockiermodus \"vortäuschen\" werden bei der Darstellung von Text die beschriebenen Pixel leicht verändert. Dies erschwert die Detektion des Add-ons, ist aber weniger sicher. Bei WebGL-Canvas ist das Verhalten identisch zu \"Auslese\".\n\nAlles: sowohl Auslese- als auch Eingabe-Funktionen werden beschützt. Es wird empfohlen diese nicht mit dem Blockiermodus \"vortäuschen\" zu verwenden, da es die Wahrscheinlichkeit erhöht detektiert zu werden.",
"description": "" "description": ""
}, },
"protectedCanvasPart_urlSpecific": { "protectedCanvasPart_urlSpecific": {
"message": "Um individuell Teile für bestimmte Webseiten zu schützen, klicken Sie auf den schwarzen Pfeil um das Menü zu öffnen, fügen Sie die gewünschte Domain oder URL mit einem Klick auf \"+\" hinzu und wählen Sie den gewünschten Teil.", "message": "Um individuell Teile für bestimmte Webseiten zu schützen, klicken Sie auf den schwarzen Pfeil um das Menü zu öffnen, fügen Sie die gewünschte Domain oder URL mit einem Klick auf \"+\" hinzu und wählen Sie den gewünschten Teil.",
"description": "" "description": ""
}, },
"protectedCanvasPart_options.nothing": {
"message": "Nichts",
"description": ""
},
"protectedCanvasPart_options.input": { "protectedCanvasPart_options.input": {
"message": "Eingabe", "message": "Eingabe",
"description": "" "description": ""

View File

@ -359,13 +359,17 @@
"description": "" "description": ""
}, },
"protectedCanvasPart_description": { "protectedCanvasPart_description": {
"message": "readout: the readout features of the canvas API are protected.\n\ninput: the input features of the canvas API are protected. With blocking mode \"fake\" the drawn pixels get modified slightly when displaying text. This makes the detection of the add-on harder but is less secure. With WebGL canvases the behaviour is identical to \"readout\".\n\neverything: both the readout and input features are protected. It's not recommended to use this with \"fake\" block mode as it increases the probability to be detected.", "message": "nothing: no features of the canvas API are protected.\n\nreadout: the readout features of the canvas API are protected.\n\ninput: the input features of the canvas API are protected. With blocking mode \"fake\" the drawn pixels get modified slightly when displaying text. This makes the detection of the add-on harder but is less secure. With WebGL canvases the behaviour is identical to \"readout\".\n\neverything: both the readout and input features are protected. It's not recommended to use this with \"fake\" block mode as it increases the probability to be detected.",
"description": "" "description": ""
}, },
"protectedCanvasPart_urlSpecific": { "protectedCanvasPart_urlSpecific": {
"message": "To protect individual parts for specific websites, click on the black arrow to open the menu, add the domain or URL by clicking on \"+\" and select the desired part.", "message": "To protect individual parts for specific websites, click on the black arrow to open the menu, add the domain or URL by clicking on \"+\" and select the desired part.",
"description": "" "description": ""
}, },
"protectedCanvasPart_options.nothing": {
"message": "nothing",
"description": ""
},
"protectedCanvasPart_options.input": { "protectedCanvasPart_options.input": {
"message": "input", "message": "input",
"description": "" "description": ""

View File

@ -166,6 +166,11 @@
return true; return true;
}; };
} }
else if (protectedPart === "nothing"){
return function(){
return false;
};
}
else { else {
return function(parts){ return function(parts){
if (Array.isArray(parts)){ if (Array.isArray(parts)){

View File

@ -70,7 +70,7 @@
defaultValue: "readout", defaultValue: "readout",
urlSpecific: true, urlSpecific: true,
options: [ options: [
"readout", "input", "everything" "nothing", "readout", "input", "everything"
] ]
}, },
{ {

View File

@ -8,6 +8,7 @@ Version 0.5.9:
- added support to import older storage versions - added support to import older storage versions
- protection for data URLs can now be url specific - protection for data URLs can now be url specific
- changed input of lists to textarea - changed input of lists to textarea
- added option to protect no part of the canvas API
fixes: fixes:
- search could show hidden settings - search could show hidden settings