Skip to content

Instantly share code, notes, and snippets.

@linusyu
Created November 25, 2014 13:30
Show Gist options
  • Save linusyu/aefea3c6bc7b1d13babb to your computer and use it in GitHub Desktop.
Save linusyu/aefea3c6bc7b1d13babb to your computer and use it in GitHub Desktop.
网易云音乐去 Flash 播放
// ==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