From 866cc33f0e7c52d996c50eb7684a927f99db5ab0 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Thu, 8 Aug 2019 20:33:05 +0100 Subject: [PATCH] Update content.js --- content.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/content.js b/content.js index 057e8eaf..41ea3f78 100644 --- a/content.js +++ b/content.js @@ -1,6 +1,6 @@ //was sponsor data found when doing SponsorsLookup var sponsorDataFound = false; - +var previousVideoID = null; //the actual sponsorTimes if loaded and UUIDs associated with them var sponsorTimes = null; var UUIDs = null; @@ -77,10 +77,6 @@ chrome.storage.sync.get(["dontShowNoticeAgain"], function(result) { //get messages from the background script and the popup chrome.runtime.onMessage.addListener(messageListener); - -window.addEventListener("hashchange", function(event){ - if(id = getYouTubeVideoID(document.URL)) videoIDChange(id); -}); function messageListener(request, sender, sendResponse) { //messages from popup script