首页  :: 新随笔  :: 管理

QQ音乐歌单获取所有歌名tempmonkey

Posted on 2022-07-14 12:53  季枫  阅读(250)  评论(0编辑  收藏  举报

QQ音乐歌单获取所有歌名tempmonkey

// ==UserScript==
// @name         歌名获取
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://y.qq.com/musicmac/v6/playlist/detail.html*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=qq.com
// @grant        none
// @require      https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
         function readName(){
            console.log("测试·······························");
              $(".songlist__name").each(function () {
                console.log( "songlist__name0---------------------------------------");
             });
             $(".songlist__name > .mod_songname__cont>.mod_songname__name").each(function () {

                console.log( $(this).attr("title"));
             });
         };

    $(document).ready(function(){
      //隐藏文本
        setTimeout(function(){readName();},2000);
        console.log( "启动脚本。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。");

    })

    // Your code here...
})();

  

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |