")
}
}else if(/\.mp4$/.test(z.split('?')[0])){
if(! URLs.includes(z) ){
URLs.push(z)
//console.log('type: m3u8 , url: ' + x.name)
$(".urlnone").remove()
$(".MyUrls .noneUrl:first").css("display","block").attr("class","isUrl").children("p").attr('title',z).text(z)
//$(".MyUrls").append("
")
}
}
}
if (x.initiatorType === "video" && !/\.jpg/.test(x.name)) {
z = x.name
if(! URLs.includes(z) ){
URLs.push(z)
//console.log('type: video , url: ' + x.name)
$(".urlnone").remove()
$(".MyUrls .noneUrl:first").css("display","block").attr("class","isUrl").children("p").attr('title',z).text(z)
//$(".MyUrls").append("
")
}
}
})
$("video").each(function () {
if(!/^blob:/.test(this.currentSrc)){
z = this.currentSrc
if(! URLs.includes(z)&& this.currentSrc!=""){
URLs.push(z)
//console.log('type: video , url: ' + this.currentSrc)
$(".urlnone").remove()
$(".MyUrls .noneUrl:first").css("display","block").attr("class","isUrl").children("p").attr('title',z).text(z)
//$(".MyUrls").append("
")
}
}
$(this).find("source").each(function () {
if($(this).attr('src')!=''&&$(this).attr('src')!=undefined){
if(!/^(http:|https:)/.test($(this).attr('src'))){
z = location.href.split("://")[0] +':'+ $(this).attr('src')
}else{
z = $(this).attr('src')
}
if(! URLs.includes(z) && z != ""){
URLs.push(z)
//console.log('type: src , url: ' + z)
$(".urlnone").remove()
$(".MyUrls .noneUrl:first").css("display","block").attr("class","isUrl").children("p").attr('title',z).text(z)
//$(".MyUrls").append("
")
}
}
})
})
//if(URLs.length>0 && $("#MyUrls").css("display")=="none"&& n==0){
// $("#MyUpDown").click()
// n = 1
//}
}
})();