');
GM_openInTab(ozlurlmusic, {active: !0});
}
if (kuaishouzcvs==0 ){
swal("支持短视频下载,注意只能进入视频的播放页面后 方可正常使用本菜单的下载功能。例如https://www.kuaishou.com/short-video/3xh3pisqccie7r6?authorId=3xb6th63c84ney4&streamSource=find&area=homexxbrilliant");
}
}
if (location.href.indexOf("douyin.com") >= 0 ){
var douyinzcvs=0;
if ($("video").length>0){
douyinzcvs=1;
var musicname="";
if ($("h1").length>0){
musicname=$("h1").text();
}
if ($(".title").length>0){
musicname=$(".title").text();
}
GM_setValue('gomusic', '
');
GM_openInTab(ozlurlmusic, {active: !0});
}
if (location.href.indexOf("qq.com/n/ryqq/mv/") >=0 ){
qqzcvs=1;
var musicname="";
if ($(".mv__name").length>0){
musicname=$(".mv__name").text();
}
if ($(".mv__singer").length>0){
musicname=musicname+"-"+$(".mv__singer").text();
}
if ($("video").attr("src")){
if ($("video").attr("src").indexOf("blob:") >=0){
var qqmvid= location.href.match(/ryqq\/mv\/([^/]+)$/)[1];
var qqmurl ='https://u.y.qq.com/cgi-bin/musicu.fcg?format=json&data=%7B%22comm%22%3A%7B%22ct%22%3A6%2C%22cv%22%3A0%2C%22g_tk%22%3A1451918689%2C%22uin%22%3A10000%2C%22format%22%3A%22json%22%2C%22platform%22%3A%22yqq%22%7D%2C%22mvInfo%22%3A%7B%22module%22%3A%22video.VideoDataServer%22%2C%22method%22%3A%22get_video_info_batch%22%2C%22param%22%3A%7B%22vidlist%22%3A%5B%22'+qqmvid+'%22%5D%2C%22required%22%3A%5B%22vid%22%2C%22type%22%2C%22sid%22%2C%22cover_pic%22%2C%22duration%22%2C%22singers%22%2C%22new_switch_str%22%2C%22video_pay%22%2C%22hint%22%2C%22code%22%2C%22msg%22%2C%22name%22%2C%22desc%22%2C%22playcnt%22%2C%22pubdate%22%2C%22isfav%22%2C%22fileid%22%2C%22filesize%22%2C%22pay%22%2C%22pay_info%22%2C%22uploader_headurl%22%2C%22uploader_nick%22%2C%22uploader_uin%22%2C%22uploader_encuin%22%5D%7D%7D%2C%22mvUrl%22%3A%7B%22module%22%3A%22music.stream.MvUrlProxy%22%2C%22method%22%3A%22GetMvUrls%22%2C%22param%22%3A%7B%22vids%22%3A%5B%22'+qqmvid+'%22%5D%2C%22request_type%22%3A10003%2C%22addrtype%22%3A3%2C%22format%22%3A264%7D%7D%7D';
GM_xmlhttpRequest({
url: qqmurl,
method: 'GET',
timeout: 3000,
headers: {
'Content-Type': 'application/jsonp',
'Accept': 'application/jsonp',
'Cache-Control': 'public'
},
onload: function(res){
try{
const t = JSON.parse(res.responseText);
if (t.mvUrl.data[qqmvid].mp4){
var mvarra=t.mvUrl.data[qqmvid].mp4;
var mvuarra = new Array();
for(var i=0;i'+musicname+'