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