mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Merge branch 'master' into themes
This commit is contained in:
commit
c2a817478e
@ -1,4 +1,4 @@
|
||||
This add-on allows users to prevent websites from using the some Javascript APIs to fingerprint them. Users can choose to block the APIs entirely on some or all websites (which may break some websites) or fake its fingerprinting-friendly readout API.
|
||||
This add-on allows users to prevent websites from using some Javascript APIs to fingerprint them. Users can choose to block the APIs entirely on some or all websites (which may break some websites) or fake its fingerprinting-friendly readout API.
|
||||
|
||||
<b>IMPORTANT</b>: you should only have ONE addon/setting set that protects an API. Otherwise you could face massive performance issues. (E.g. EclipsedMoon for Palemoon has 'canvas.poison' which is known to cause issues: https://github.com/kkapsner/CanvasBlocker/issues/253#issuecomment-459499290)
|
||||
But setting privacy.resistFingerprinting to true is fine.
|
||||
|
@ -1,4 +1,4 @@
|
||||
This add-on allows users to prevent websites from using the some Javascript APIs to fingerprint them. Users can choose to block the APIs entirely on some or all websites (which may break some websites) or just block or fake its fingerprinting-friendly readout API.
|
||||
This add-on allows users to prevent websites from using some Javascript APIs to fingerprint them. Users can choose to block the APIs entirely on some or all websites (which may break some websites) or just block or fake its fingerprinting-friendly readout API.
|
||||
|
||||
**IMPORTANT**: you should only have ONE addon/setting set that protects an API. Otherwise you could face massive performance issues. (E.g. EclipsedMoon for Palemoon has 'canvas.poison' which is known to cause issues: https://github.com/kkapsner/CanvasBlocker/issues/253#issuecomment-459499290)
|
||||
But setting privacy.resistFingerprinting to true is fine.
|
||||
|
@ -20,20 +20,26 @@
|
||||
browser.extension.getBackgroundPage() === window
|
||||
);
|
||||
|
||||
scope.getTranslation = function getTranslation(id){
|
||||
scope.getTranslation = browserAvailable? function getTranslation(id){
|
||||
return browser.i18n.getMessage(id);
|
||||
}: function(id){
|
||||
return id;
|
||||
};
|
||||
|
||||
scope.extensionID = browser.extension.getURL("");
|
||||
scope.extensionID = browserAvailable? browser.extension.getURL(""): "extensionID";
|
||||
|
||||
scope.inIncognitoContext = browser.extension.inIncognitoContext;
|
||||
scope.inIncognitoContext = browserAvailable? browser.extension.inIncognitoContext: false;
|
||||
|
||||
scope.message = {
|
||||
on: function(callback){
|
||||
on: browserAvailable? function(callback){
|
||||
return browser.runtime.onMessage.addListener(callback);
|
||||
}: function(){
|
||||
return false;
|
||||
},
|
||||
send: function(data){
|
||||
send: browserAvailable? function(data){
|
||||
return browser.runtime.sendMessage(data);
|
||||
}: function(){
|
||||
return false;
|
||||
}
|
||||
};
|
||||
Object.seal(scope.message);
|
||||
|
@ -10,6 +10,7 @@
|
||||
"background": {
|
||||
"scripts": [
|
||||
"lib/require.js",
|
||||
"lib/extension.js",
|
||||
"lib/logging.js",
|
||||
"lib/settingDefinitions.js",
|
||||
"lib/settingContainers.js",
|
||||
|
@ -30,7 +30,7 @@
|
||||
logging.notice("empty storage");
|
||||
settings.persistentRndStorage = "";
|
||||
logging.notice("send message to main script");
|
||||
browser.runtime.sendMessage({"canvasBlocker-clear-domain-rnd": true});
|
||||
extension.message.send({"canvasBlocker-clear-domain-rnd": true});
|
||||
},
|
||||
inspectSettings: function(){
|
||||
logging.verbose("open settings inspection");
|
||||
|
Loading…
x
Reference in New Issue
Block a user