aboutsummaryrefslogtreecommitdiff
path: root/misc/piped-preferences.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/piped-preferences.js')
-rw-r--r--misc/piped-preferences.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/misc/piped-preferences.js b/misc/piped-preferences.js
index 0c7fffe..a168418 100644
--- a/misc/piped-preferences.js
+++ b/misc/piped-preferences.js
@@ -10,34 +10,34 @@
// all skip options (if any are to be set) must be present to avoid player errors
const skipOptionsDefault = {
- sponsor: "auto",
- intro: "no",
- outro: "no",
- preview: "no",
- interaction: "auto",
- selfpromo: "auto",
- music_offtopic: "auto",
- poi_highlight: "no",
- filler: "no"
+ sponsor: "auto",
+ intro: "no",
+ outro: "no",
+ preview: "no",
+ interaction: "auto",
+ selfpromo: "auto",
+ music_offtopic: "auto",
+ poi_highlight: "no",
+ filler: "no"
}
// fill localStorage { key: value } with preferred options
// any preferences not filled will be default
const prefs = {
- bufferGoal: 30,
- dearrow: true,
- enabledCodecs: "avc",
- homepage: "feed",
- quality: 720,
- showWatchOnYouTube: true,
- watchHistory: true,
- skipOptions: JSON.stringify({...skipOptionsDefault, ...{
- intro: "auto",
- poi_highlight: "button",
- filler: "button",
- }}),
+ bufferGoal: 30,
+ dearrow: true,
+ enabledCodecs: "avc",
+ homepage: "feed",
+ quality: 720,
+ showWatchOnYouTube: true,
+ watchHistory: true,
+ skipOptions: JSON.stringify({...skipOptionsDefault, ...{
+ intro: "auto",
+ poi_highlight: "button",
+ filler: "button",
+ }}),
}
// setup localStorage
for (const [key, value] of Object.entries(prefs))
- localStorage.setItem(key, value)
+ localStorage.setItem(key, value)