mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Update content.js
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
//was sponsor data found when doing SponsorsLookup
|
//was sponsor data found when doing SponsorsLookup
|
||||||
var sponsorDataFound = false;
|
var sponsorDataFound = false;
|
||||||
|
var previousVideoID = null;
|
||||||
//the actual sponsorTimes if loaded and UUIDs associated with them
|
//the actual sponsorTimes if loaded and UUIDs associated with them
|
||||||
var sponsorTimes = null;
|
var sponsorTimes = null;
|
||||||
var UUIDs = null;
|
var UUIDs = null;
|
||||||
@@ -77,10 +77,6 @@ chrome.storage.sync.get(["dontShowNoticeAgain"], function(result) {
|
|||||||
|
|
||||||
//get messages from the background script and the popup
|
//get messages from the background script and the popup
|
||||||
chrome.runtime.onMessage.addListener(messageListener);
|
chrome.runtime.onMessage.addListener(messageListener);
|
||||||
|
|
||||||
window.addEventListener("hashchange", function(event){
|
|
||||||
if(id = getYouTubeVideoID(document.URL)) videoIDChange(id);
|
|
||||||
});
|
|
||||||
|
|
||||||
function messageListener(request, sender, sendResponse) {
|
function messageListener(request, sender, sendResponse) {
|
||||||
//messages from popup script
|
//messages from popup script
|
||||||
|
|||||||
Reference in New Issue
Block a user