Run with jsbeautifier

http://jsbeautifier.org/
This commit is contained in:
Official Noob
2018-06-23 16:09:05 +01:00
committed by GitHub
parent 4c84e38490
commit db9ebe4b3f

View File

@@ -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?=?([^#\&\?]*).*/;