From 30c1b2d91981020f3b0fa50f7a31573b21782c02 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 27 Jul 2019 11:18:50 -0400 Subject: [PATCH] Added reference and updated version number. --- firefox_manifest.json | 2 +- manifest.json | 2 +- popup.js | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) 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);