Fixed a typo in Piped Unify Settings, and added more settings

This commit is contained in:
ManeraKai 2022-05-22 11:56:00 +03:00
parent ddf88f4be6
commit 3f9f19356e
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
3 changed files with 7 additions and 1 deletions

View File

@ -1,12 +1,16 @@
window.browser = window.browser || window.chrome;
console.log('unifying piped');
browser.storage.local.set(
{
'piped_bufferGoal': localStorage.getItem("bufferGoal"),
'piped_comments': localStorage.getItem("comments"),
'piped_disableLBRY': localStorage.getItem("disableLBRY"),
'piped_enabledCodecs': localStorage.getItem("enabledCodecs"),
'piped_hl': localStorage.getItem("hl"),
'piped_homepage': localStorage.getItem("homepage"),
'piped_instance': localStorage.getItem("instance"),
'piped_listen': localStorage.getItem("listen"),
'piped_minimizeDescription': localStorage.getItem("minimizeDescription"),
'piped_playerAutoPlay': localStorage.getItem("playerAutoPlay"),

View File

@ -23,8 +23,10 @@ browser.storage.local.get(
if (r.piped_bufferGoal !== undefined) localStorage.setItem("bufferGoal", r.piped_bufferGoal);
if (r.piped_comments !== undefined) localStorage.setItem("comments", r.piped_comments);
if (r.piped_disableLBRY !== undefined) localStorage.setItem("disableLBRY", r.piped_disableLBRY);
if (r.piped_hl !== undefined) localStorage.setItem("hl", r.piped_hl);
if (r.piped_enabledCodecs !== undefined) localStorage.setItem("enabledCodecs", r.piped_enabledCodecs);
if (r.piped_homepage !== undefined) localStorage.setItem("homepage", r.piped_homepage);
if (r.piped_instance !== undefined) localStorage.setItem("instance", r.piped_instance);
if (r.piped_listen !== undefined) localStorage.setItem("listen", r.piped_listen);
if (r.piped_minimizeDescription !== undefined) localStorage.setItem("minimizeDescription", r.piped_minimizeDescription);
if (r.piped_playerAutoPlay !== undefined) localStorage.setItem("playerAutoPlay", r.piped_playerAutoPlay);

View File

@ -442,7 +442,7 @@ function initPipedLocalStorage(test, url, tabId) {
browser.tabs.executeScript(
tabId,
{
file: "/assets/javascripts/helpers/youtube/get_piped_settings.js",
file: "/assets/javascripts/helpers/youtube/get_piped_preferences.js",
runAt: "document_start"
}
);