您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
【酷我音乐】免费歌曲下载
当前为
// ==UserScript== // @name 酷我VIP音乐免费下载 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 【酷我音乐】免费歌曲下载 // @author MrHao // @match http://www.kuwo.cn/* // @grant GM_xmlhttpRequest // @grant GM_download // @connect * // ==/UserScript== (function() { 'use strict'; // Your code here... console.log("==================================KUWO=Hack=By=MrHao==================================") function getURLParameter(url, name) { return (RegExp(name + '=' + '(.+?)(&|$)').exec(url)||[,null])[1]; } var down_load=document.getElementsByClassName("btns")[0] var child = down_load.lastChild; console.log(child) var button = document.createElement("button"); button.id = "down_load"; button.textContent = "下载"; button.style.width = "113px"; button.style.height = "40px"; button.style.color = "#000"; button.style.background = "#f2f2f2"; button.style.borderRadius = "22px"; button.style.border = "none"; button.style.fontSize = "16px"; button.style.cursor = "pointer"; button.style.color = "inherit"; down_load.appendChild(button) button.onclick = function (){ let timestamp = (new Date).getTime() let jsonTxt = location.href let num = location.href.lastIndexOf("/"); let json = jsonTxt.substr(num,jsonTxt.length).replace(");",""); let rid = json.replace("/","") let url="http://www.kuwo.cn/url" +"?format=mp3" +"&rid="+rid +"&response=url" +"&type=convert_url3" +"&br=320kmp3" +"&from=web" +"&t="+timestamp +"&httpsStatus=1" +"&reqId=47a4d540-8bad-11eb-a042-85fdd60cefbd" let name="http://m.kuwo.cn/newh5/singles/songinfoandlrc" +"?musicId="+rid +"&httpsStatus=1" +"&reqId=f8253ce0-8bba-11eb-8129-2d426b8a6ecc" GM_xmlhttpRequest({ method: "get", url: name, onload: function(r) { let jsonTxt = r.response let json = JSON.parse(jsonTxt) //console.log(json.data.lrclist[0].lineLyric) let songName = json.data.lrclist[0].lineLyric down(url,songName) } }); return; }; function down(url ,name){ GM_xmlhttpRequest({ method: "get", url: url, onload: function(r) { let jsonTxt = r.response let json = JSON.parse(jsonTxt) GM_download(json.url,name+".mp3") } }); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址