163music

播放那些因版权无法播放的云音乐

目前為 2017-03-31 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         163music
// @namespace    http://ouo.us/
// @version      0.4
// @description  播放那些因版权无法播放的云音乐
// @author       pojtt
// @match        *://music.163.com/*
// @grant        GM_addStyle
// @require      http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
    if ($("a.u-btni-play") && $("a.u-btni-play").length>0) {
        var id= $("a.u-btni-play").parent().attr('data-rid');
        $("a.u-btni-play").html('<i>喵阅播放</i>');
        $("a.u-btni-play").attr('title','使用喵阅播放♪');
        $("a.u-btni-play").removeClass('u-btni-play-dis');
        $("a.u-btni-play").attr('onclick','window.open(\'http://ouo.us/fm/163/?id='+id+'#min\',\'163\',\'height=481,width=320,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no\')');
    }
    if ($(".m-table") && $(".m-table").length>0) {
        GM_addStyle("div[class^='auto-']{display:none!important}");
        $(".m-table tr.js-dis").each(function(){
            var $ply = $(this).find("span.ply");
            $ply.attr('style','opacity:1;cursor:pointer');
            $ply.attr('title','使用喵阅播放♪');
            $ply.attr('onclick','window.open(\'http://ouo.us/fm/163/?id='+$ply.attr('data-res-id')+'#min\',\'163\',\'height=481,width=320,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no\')');
        });
    }
})();