diff --git a/firefox_manifest.json b/firefox_manifest.json index 7021c6ff..042acf13 100644 --- a/firefox_manifest.json +++ b/firefox_manifest.json @@ -1,7 +1,7 @@ { "name": "SponsorBlock - YouTube Sponsorship Blocker", "short_name": "SponsorBlock", - "version": "1.0.10", + "version": "1.0.11", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "content_scripts": [ { diff --git a/manifest.json b/manifest.json index 8a397921..4cadb2fe 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "SponsorBlock - YouTube Sponsorship Blocker", "short_name": "SponsorBlock", - "version": "1.0.10", + "version": "1.0.11", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "content_scripts": [ { diff --git a/popup.js b/popup.js index af754f2d..4526bfbe 100644 --- a/popup.js +++ b/popup.js @@ -1,4 +1,7 @@ + // References +var SB = {}; + SB.sponsorStart = document.getElementById("sponsorStart"); SB.clearTimes = document.getElementById("clearTimes"); SB.submitTimes = document.getElementById("submitTimes"); @@ -13,6 +16,7 @@ SB.reportAnIssue = document.getElementById("reportAnIssue"); SB.sponsorTimesContributionsContainer = document.getElementById("sponsorTimesContributionsContainer"); SB.sponsorTimesContributionsDisplay = document.getElementById("sponsorTimesContributionsDisplay"); SB.sponsorTimesContributionsDisplayEndWord = document.getElementById("sponsorTimesContributionsDisplayEndWord"); + //setup click listeners SB.sponsorStart.addEventListener("click", sendSponsorStartMessage); SB.clearTimes.addEventListener("click", clearTimes);