mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
@@ -11,7 +11,9 @@ xmlhttp.open('GET', 'https://officialnoob.github.io/YTSponsorSkip-Dataset/'+id,
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
Sponsors = JSON.parse(xmlhttp.responseText);
|
||||
v.ontimeupdate = function() {SponsorCheck()};
|
||||
v.ontimeupdate = function () {
|
||||
SponsorCheck()
|
||||
};
|
||||
}
|
||||
};
|
||||
xmlhttp.send(null);
|
||||
@@ -22,7 +24,8 @@ function SponsorCheck() {
|
||||
if ((Math.floor(v.currentTime)) == el[0]) {
|
||||
v.currentTime = el[1];
|
||||
}
|
||||
});}
|
||||
});
|
||||
}
|
||||
|
||||
function youtube_parser(url) {
|
||||
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
|
||||
|
||||
Reference in New Issue
Block a user