清酒踏月在线音乐播放器美化

try to take over the world!

目前為 2020-06-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name         清酒踏月在线音乐播放器美化
// @namespace    http://tampermonkey.net/
// @version      0.2.6
// @description  try to take over the world!
// @author       AN drew
// @match        http://music.lkxin.cn/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    $("a").each(function(){
        if($(this).attr("title")!=undefined && ($(this).attr("title").indexOf("上一首") > -1 || $(this).attr("title").indexOf("暂停/继续") > -1 || $(this).attr("title").indexOf("下一首") > -1 || $(this).attr("title").indexOf("循环控制") > -1 || $(this).attr("title").indexOf("静音") > -1 ))
            return true;
        else if($(this).parent().prop("tagName")=="li")
            return true;
        else
            $(this).attr("style","display:none")
    })

    $("span").each(function(){

        if($(this).attr("title")!=undefined && ($(this).attr("title").indexOf("音乐播放列表") > -1 || $(this).attr("title").indexOf("点击搜索音乐") > -1 || $(this).attr("title").indexOf("更多") > -1))
            return true;
        else
            $(this).attr("style","display:none")
    })


    $(".dropdown-toggle").css({"display":"block","color":"white"})
    $(".dropdown-toggle").text("快捷键")
    $(".dropdown-toggle").attr("title","快捷键")
    $(".dropdown").parent().attr("title","快捷键")


    for(var i=0; i<7; i++)
        $(".dropdown-menu").children().first().remove()
    $(".dropdown-menu").find("a").each(function(){
        $(this).attr("style","display:block")
        if($(this).text().indexOf("电脑操作快捷键")>-1)
           $(this).css({"text-align":"center","background":"#f5f5f5"})
    })
    $(".logo").attr("style","display:none")
    $(".marquee").attr("style","display:none")
    $(".mask").attr("style","display:none")
    $(".pcd_ad").attr("style","display:none")
    $(".mbd_ad").attr("style","display:none;visibility:hidden;")
   

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