mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
parent
d4fc7027eb
commit
3d603b84d4
@ -100,6 +100,10 @@
|
|||||||
"message": "You have privacy.resistFingerprinting enabled. This slightly changes the behaviour of CanvasBlocker. See further information {link:here:https://github.com/kkapsner/CanvasBlocker/issues/158} and {link:here:https://github.com/ghacksuserjs/ghacks-user.js/issues/767}.",
|
"message": "You have privacy.resistFingerprinting enabled. This slightly changes the behaviour of CanvasBlocker. See further information {link:here:https://github.com/kkapsner/CanvasBlocker/issues/158} and {link:here:https://github.com/ghacksuserjs/ghacks-user.js/issues/767}.",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
"settingsNotice.dom.webAudio.enabled": {
|
||||||
|
"message": "You have dom.webAudio.enabled disabled. This makes you more trackable as very few people do this.",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
"openInTab": {
|
"openInTab": {
|
||||||
"message": "Open in separate tab",
|
"message": "Open in separate tab",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
@ -37,7 +37,7 @@ header .bookmarkNotice .dontShowOptionsOnUpdate input {
|
|||||||
vertical-align: sub;
|
vertical-align: sub;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resistFingerprintingNotice {
|
.resistFingerprintingNotice, .settingsNotice {
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
border: 1px solid var(--input-error-background-color);
|
border: 1px solid var(--input-error-background-color);
|
||||||
|
@ -234,28 +234,38 @@
|
|||||||
groupTabs.classList = "groupTabs";
|
groupTabs.classList = "groupTabs";
|
||||||
document.body.appendChild(groupTabs);
|
document.body.appendChild(groupTabs);
|
||||||
|
|
||||||
if (
|
[
|
||||||
browser.privacy &&
|
{
|
||||||
browser.privacy.websites &&
|
check: async function(){
|
||||||
browser.privacy.websites.resistFingerprinting &&
|
if (
|
||||||
browser.privacy.websites.resistFingerprinting.get
|
browser.privacy &&
|
||||||
){
|
browser.privacy.websites &&
|
||||||
browser.privacy.websites.resistFingerprinting.get({}).then(function({value}){
|
browser.privacy.websites.resistFingerprinting &&
|
||||||
if (value){
|
browser.privacy.websites.resistFingerprinting.get
|
||||||
const rfpNotice = document.createElement("div");
|
){
|
||||||
rfpNotice.className = "resistFingerprintingNotice";
|
return (await browser.privacy.websites.resistFingerprinting.get({})).value;
|
||||||
rfpNotice.appendChild(
|
}
|
||||||
extension.parseTranslation(
|
return false;
|
||||||
extension.getTranslation("resistFingerprintingNotice")
|
},
|
||||||
)
|
className: "resistFingerprintingNotice",
|
||||||
);
|
text: "resistFingerprintingNotice"
|
||||||
document.body.insertBefore(rfpNotice, groupTabs);
|
},
|
||||||
}
|
{
|
||||||
return undefined;
|
check: () => !window.AudioContext,
|
||||||
}).catch(function(error){
|
text: "settingsNotice.dom.webAudio.enabled"
|
||||||
logging.warning("Unable to read resistFingerprinting:", error);
|
},
|
||||||
});
|
].forEach(async function(settingsCheck){
|
||||||
}
|
if (await settingsCheck.check()){
|
||||||
|
const settingsNotice = document.createElement("div");
|
||||||
|
settingsNotice.className = settingsCheck.className || "settingsNotice";
|
||||||
|
settingsNotice.appendChild(
|
||||||
|
extension.parseTranslation(
|
||||||
|
extension.getTranslation(settingsCheck.text)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
document.body.insertBefore(settingsNotice, groupTabs);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const groups = document.createElement("ul");
|
const groups = document.createElement("ul");
|
||||||
groups.className = "groups";
|
groups.className = "groups";
|
||||||
|
@ -4,6 +4,7 @@ Version 1.8:
|
|||||||
|
|
||||||
new features:
|
new features:
|
||||||
- added SVG protection
|
- added SVG protection
|
||||||
|
- added notice when dom.webAudio.enabled is set to false
|
||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
- errors in URL regular expressions broke CB
|
- errors in URL regular expressions broke CB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user