mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
parent
1556ee45c2
commit
9353f71455
7 changed files with 73 additions and 28 deletions
|
@ -228,6 +228,29 @@
|
|||
groupTabs.classList = "groupTabs";
|
||||
document.body.appendChild(groupTabs);
|
||||
|
||||
if (
|
||||
browser.privacy &&
|
||||
browser.privacy.websites &&
|
||||
browser.privacy.websites.resistFingerprinting &&
|
||||
browser.privacy.websites.resistFingerprinting.get
|
||||
){
|
||||
browser.privacy.websites.resistFingerprinting.get({}).then(function({value}){
|
||||
if (value){
|
||||
const rfpNotice = document.createElement("div");
|
||||
rfpNotice.className = "resistFingerprintingNotice";
|
||||
rfpNotice.appendChild(
|
||||
extension.parseTranslation(
|
||||
extension.getTranslation("resistFingerprintingNotice")
|
||||
)
|
||||
);
|
||||
document.body.insertBefore(rfpNotice, groupTabs);
|
||||
}
|
||||
return undefined;
|
||||
}).catch(function(error){
|
||||
logging.warning("Unable to read resistFingerprinting:", error);
|
||||
});
|
||||
}
|
||||
|
||||
const groups = document.createElement("ul");
|
||||
groups.className = "groups";
|
||||
groupTabs.appendChild(groups);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue