From 699ca91a9430f6715f966533fdb5eceb0a57e7a3 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 10 Aug 2019 22:04:32 -0400 Subject: [PATCH] Made channel whitelisting properly work on first loaded video. --- content.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content.js b/content.js index 656b0e83..07dae739 100644 --- a/content.js +++ b/content.js @@ -10,10 +10,6 @@ var sponsorVideoID = null; //the time this video is starting at when first played, if not zero var youtubeVideoStartTime = null; -if(id = getYouTubeVideoID(document.URL)){ // Direct Links - videoIDChange(id); -} - //the video var v; @@ -23,6 +19,10 @@ var channelURL; //is this channel whitelised from getting sponsors skipped var channelWhitelisted = false; +if(id = getYouTubeVideoID(document.URL)){ // Direct Links + videoIDChange(id); +} + //the last time looked at (used to see if this time is in the interval) var lastTime = -1;