Created
November 25, 2014 13:30
-
-
Save linusyu/aefea3c6bc7b1d13babb to your computer and use it in GitHub Desktop.
网易云音乐去 Flash 播放
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Music 163 without Flash | |
// @namespace http://loli.com.co | |
// @include http://music.163.com/* | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function () { | |
window.NEJ = window.NEJ || {}; | |
NEJ.P = function (kU) { | |
if (!kU || !kU.length) return null; | |
var rD = window; | |
for (var a = kU.split('.'), l = a.length, i = a[0] == 'window' ? 1 : 0; i < l; rD = rD[a[i]] = rD[a[i]] || { | |
}, i++); | |
return rD; | |
}; | |
Object.defineProperty(NEJ.P('nm.x'), "Qx", { | |
get: function() { return function(){ return {supported:false,version:""}} ; } | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment