You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
372 B
14 lines
372 B
// Scripts obtain settings by calling this function
|
|
function setting(name) {
|
|
return JSON.parse(localStorage[name]);
|
|
}
|
|
|
|
// Default settings
|
|
function setDefault(name, value) {
|
|
if (!(name in localStorage)) {
|
|
localStorage[name] = JSON.stringify(value);
|
|
}
|
|
}
|
|
setDefault("videoexpand", true);
|
|
setDefault("videohover", false);
|
|
setDefault("videomuted", false);
|
|
|