From 80793788ec345b4038f9bca5f9d90ef344107fa4 Mon Sep 17 00:00:00 2001 From: Ryan Thaut Date: Wed, 1 Jan 2025 19:34:55 -0700 Subject: [PATCH] remove commented out console logs --- app/scripts/helpers/options.js | 15 --------------- app/scripts/helpers/youtube.js | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/app/scripts/helpers/options.js b/app/scripts/helpers/options.js index dcb6a68..9f91288 100644 --- a/app/scripts/helpers/options.js +++ b/app/scripts/helpers/options.js @@ -18,17 +18,11 @@ const Options = (() => { * @param {boolean} [reset=false] indicates if local storage should be reset */ InitLocalStorageDefaults: async function (reset = false) { - // console.log("Options.InitDefaults()"); - const defaults = this.ConvertForStorage( Object.assign({}, OPTION_DEFAULTS), ); if (reset) { - // console.log( - // "Options.InitDefaults() :: Setting all options to default values", - // defaults - // ); await browser.storage.local.clear(); await browser.storage.local.set(defaults); } else { @@ -38,11 +32,6 @@ const Options = (() => { Object.keys(defaults).forEach((option) => { if (options[option] === undefined || options[option] === null) { - // console.log( - // `Options.InitDefaults() :: Setting "${option}" to default value`, - // defaults[option] - // ); - const opt = {}; opt[option] = defaults[option]; promises.push(browser.storage.local.set(opt)); @@ -51,10 +40,6 @@ const Options = (() => { Object.keys(options).forEach((option) => { if (defaults[option] === undefined || defaults[option] === null) { - // console.log( - // `Options.InitDefaults() :: Removing unknown/invalid option "${option}"` - // ); - promises.push(browser.storage.local.remove(option)); } }); diff --git a/app/scripts/helpers/youtube.js b/app/scripts/helpers/youtube.js index 95166d0..2ec0173 100644 --- a/app/scripts/helpers/youtube.js +++ b/app/scripts/helpers/youtube.js @@ -21,19 +21,13 @@ export const IsVideoURL = (url, external = true) => * @returns {string} the video ID */ export const GetVideoIDFromURL = (url, external = true) => { - // console.group("GetVideoIDFromURL()"); - let id = null; const result = (external ? VideoLinkOrEmbedRegEx : VideoIDRegEx).exec(url); - // console.log("RegExp Result", result); - if (result && result[1]) { id = result[1]; } - // console.log("Return", id); - // console.groupEnd(); return id; }; @@ -43,12 +37,7 @@ export const GetVideoIDFromURL = (url, external = true) => { * @returns {string} the playlist ID */ export const GetPlaylistIDFromURL = (url) => { - // console.group("GetPlaylistIDFromURL()"); - const id = GetParamFromURL("list", url); - - // console.log("Return", id); - // console.groupEnd(); return id; }; @@ -57,8 +46,6 @@ export const GetPlaylistIDFromURL = (url) => { * @return {string[]} the video IDs */ export const GetPlaylistVideoIDsFromDOM = () => { - // console.group("GetPlaylistVideoIDsFromDOM()"); - const IDs = Array.from( new Set( Array.from( @@ -74,7 +61,5 @@ export const GetPlaylistVideoIDsFromDOM = () => { ), ); - // console.log("Return", IDs); - // console.groupEnd(); return IDs; };