1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 20:16:33 +02:00

Added setting to whitelist parts of the canvas API

This commit is contained in:
kkapsner 2018-05-26 15:33:39 +02:00
parent 9d0cd04fc3
commit f02246128e
7 changed files with 87 additions and 2 deletions

View file

@ -59,6 +59,18 @@
defaultValue: "nonPersistent",
options: ["white", "nonPersistent", "constant", "persistent"]
},
{
name: "apiWhiteList",
defaultValue: {},
keys: [
"getContext",
"toDataURL", "toBlob", "mozGetAsFile", "getImageData",
"isPointInPath", "isPointInStroke",
"fillText", "strokeText",
"readPixels"
],
defaultKeyValue: false
},
{
name: "useCanvasCache",
defaultValue: true