mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
4ea073132d
Added helper scripts for webExtension.
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;
|
|
});
|
|
}
|
|
});
|
|
}()); |