From 2a1b60596b1687473f58f1ccb4ec498dabb9b8d0 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Tue, 31 Dec 2019 21:30:54 +0000 Subject: [PATCH] debug --- content.js | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/content.js b/content.js index 3a6b244f..f02c72d0 100644 --- a/content.js +++ b/content.js @@ -71,18 +71,8 @@ var sponsorTimesSubmitting = []; var popupInitialised = false; //should skips happen at all -var disableSkipping = false; -let disableSkippingStorage = SB.config.disableSkipping; -if (disableSkippingStorage != undefined) { - disableSkipping = disableSkippingStorage; -} - -//should skips be manual -var disableAutoSkip = false; -let disableAutoSkipStorage = SB.config.disableAutoSkip; -if (disableAutoSkipStorage != undefined) { - disableAutoSkip = disableAutoSkipStorage; -} +var disableSkipping = (SB.config.disableSkipping !== undefined); +var disableAutoSkip = (SB.config.disableSkipping !== undefined); //should view counts be tracked var trackViewCount = false; @@ -97,16 +87,17 @@ if (trackViewCountStorage != undefined) { //happens when the user click's the "Don't show notice again" button //option renamed when new notice was made var dontShowNotice = false; -let dontShowNoticeAgain = SB.config.dontShowNotice; -if (dontShowNoticeAgain != undefined) { - dontShowNotice = dontShowNoticeAgain; + +dontShowNoticeAgain2 = SB.config.dontShowNoticeAgain; + +if (dontShowNoticeAgain2 != undefined) { + dontShowNotice = dontShowNoticeAgain2; } //load the legacy option to hide the notice var dontShowNoticeOld = false; -let dontShowNoticeAgain = SB.config.dontShowNoticeAgain; -if (dontShowNoticeAgain != undefined) { - dontShowNoticeOld = dontShowNoticeAgain; +if (dontShowNoticeAgain2 != undefined) { + dontShowNoticeOld = dontShowNoticeAgain2; } //get messages from the background script and the popup