mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
14 lines
605 B
JavaScript
14 lines
605 B
JavaScript
|
"use strict";
|
||
|
|
||
|
var settings = {
whiteList: "",
blackList: "",
blockMode: "fakeReadout",
maxFakeSize: 0,
rng: "nonPersistent",
persistentRndStorage: "",
storePersistentRnd: false,
askOnlyOnce: true,
showNotifications: true,
notificationDisplayTime: 30,
ignoreList: "",
showCallingFile: false,
showCompleteCallingStack: false,
enableStackList: false,
stackList: ""
|
||
|
};
|
||
|
|
||
|
(function(){
|
||
|
browser.storage.onChanged.addListener(function(change, area){
|
||
|
if (area === "local"){
|
||
|
Object.keys(change).forEach(function(key){
|
||
|
settings[key] = change[key].newValue;
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
}());
|