// ==UserScript== // @name 导出QQ歌单 // @namespace https://www.柴门.wooddoor/ // @version 0.3 // @description 导出完整的QQ歌单信息以作它用 // @author 柴门 // @match https://y.qq.com/musicmac/v6/playlist/detail.html?id=* // @match https://y.qq.com/n/yqq/playlist/* // @grant none // @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js // @downloadURL https://update.greasyfork.icu/scripts/415836/%E5%AF%BC%E5%87%BAQQ%E6%AD%8C%E5%8D%95.user.js // @updateURL https://update.greasyfork.icu/scripts/415836/%E5%AF%BC%E5%87%BAQQ%E6%AD%8C%E5%8D%95.meta.js // ==/UserScript== (function() { 'use strict'; // Your code here... setTimeout(function () {////定时5秒后运行一次 var qqSongListUrl1 = "https://y.qq.com/n/yqq/playlist/"; var qqSongListUrl2 = "https://y.qq.com/musicmac/v6/playlist/"; var currUrl = decodeURIComponent(location.href.split('#')[0]); var currUrl_pre = currUrl.substr(0,currUrl.lastIndexOf("/")+1);//substr(start [,length]) 第一个字符的索引是0,start必选 length可选 console.log(currUrl_pre); if(currUrl_pre == qqSongListUrl2) { $("#songlist_box").before(`