navigator.plugins spoofing

去除网站的flash插件检测,实现html5播放。

As of 2014-12-11. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         navigator.plugins spoofing
// @namespace    aaaa007cn 
// @author      aaaa007cn 
// @include     http://play.baidu.com/*
// @include     http://fm.baidu.com/*
// @include     http://www.baidu.com/
// @include     http://5sing.kugou.com/*
// @include     http://www.beiwo.ac/*
// @include     http://music.163.com/*
// @exclude     http://music.163.com/demo/fm
// @description    去除网站的flash插件检测,实现html5播放。
// @homepage    https://www.firefox.net.cn/read-49979-1#read_341320
// @version     1.3
// @grant       none
// @run-at      document-start
// ==/UserScript==
Object.defineProperty(navigator, 'plugins', {
  get: function () {
    return { length: 0 };
  }
});