2020-07-31 08:03:31 +00:00
|
|
|
var config = {};
|
|
|
|
|
|
|
|
config.welcome = {
|
|
|
|
set lastupdate (val) {app.storage.write("lastupdate", val)},
|
|
|
|
get lastupdate () {return app.storage.read("lastupdate") !== undefined ? app.storage.read("lastupdate") : 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
config.addon = {
|
|
|
|
set state (val) {app.storage.write("state", val)},
|
|
|
|
get state () {return app.storage.read("state") !== undefined ? app.storage.read("state") : "ON"}
|
|
|
|
};
|
|
|
|
|
|
|
|
config.options = {
|
|
|
|
"hide": {
|
|
|
|
set svg (val) {app.storage.write("h_svg", val)},
|
|
|
|
set image (val) {app.storage.write("h_image", val)},
|
|
|
|
set flash (val) {app.storage.write("h_flash", val)},
|
|
|
|
set video (val) {app.storage.write("h_video", val)},
|
|
|
|
set canvas (val) {app.storage.write("h_canvas", val)},
|
|
|
|
set iframe (val) {app.storage.write("h_iframe", val)},
|
|
|
|
set background (val) {app.storage.write("h_background", val)},
|
|
|
|
get svg () {return app.storage.read("h_svg") !== undefined ? app.storage.read("h_svg") : true},
|
|
|
|
get image () {return app.storage.read("h_image") !== undefined ? app.storage.read("h_image") : true},
|
2020-09-02 10:22:23 +00:00
|
|
|
get flash () {return app.storage.read("h_flash") !== undefined ? app.storage.read("h_flash") : false},
|
2020-07-31 08:03:31 +00:00
|
|
|
get video () {return app.storage.read("h_video") !== undefined ? app.storage.read("h_video") : true},
|
|
|
|
get canvas () {return app.storage.read("h_canvas") !== undefined ? app.storage.read("h_canvas") : true},
|
|
|
|
get iframe () {return app.storage.read("h_iframe") !== undefined ? app.storage.read("h_iframe") : true},
|
|
|
|
get background () {return app.storage.read("h_background") !== undefined ? app.storage.read("h_background") : true}
|
|
|
|
},
|
|
|
|
"block": {
|
|
|
|
set svg (val) {app.storage.write("b_svg", val)},
|
|
|
|
set image (val) {app.storage.write("b_image", val)},
|
|
|
|
set flash (val) {app.storage.write("b_flash", val)},
|
|
|
|
set video (val) {app.storage.write("b_video", val)},
|
|
|
|
set canvas (val) {app.storage.write("b_canvas", val)},
|
|
|
|
set iframe (val) {app.storage.write("b_iframe", val)},
|
|
|
|
set background (val) {app.storage.write("b_background", val)},
|
|
|
|
get svg () {return app.storage.read("b_svg") !== undefined ? app.storage.read("b_svg") : true},
|
|
|
|
get image () {return app.storage.read("b_image") !== undefined ? app.storage.read("b_image") : true},
|
2020-09-02 10:22:23 +00:00
|
|
|
get flash () {return app.storage.read("b_flash") !== undefined ? app.storage.read("b_flash") : false},
|
2020-07-31 08:03:31 +00:00
|
|
|
get video () {return app.storage.read("b_video") !== undefined ? app.storage.read("b_video") : true},
|
|
|
|
get canvas () {return app.storage.read("b_canvas") !== undefined ? app.storage.read("b_canvas") : true},
|
|
|
|
get iframe () {return app.storage.read("b_iframe") !== undefined ? app.storage.read("b_iframe") : true},
|
|
|
|
get background () {return app.storage.read("b_background") !== undefined ? app.storage.read("b_background") : true}
|
|
|
|
}
|
|
|
|
};
|