navigator.plugins spoofing

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         navigator.plugins spoofing
// @namespace    aaaa007cn 
// @author      aaaa007cn 
// @include     http://play.baidu.com/*
// @include     http://fm.baidu.com/*
// @include     *://www.baidu.com/
// @include     http://5sing.kugou.com/*
// @include     http://www.beiwo.ac/*
// @include     http://www.dongting.com/*
// @include     http://fm.dongting.com/*
// @include     http://www.duole.com/*
// @include     *://music.douban.com/*
// @include     http://papa.me/*
// @include    http://www.1ting.com/*
// @include    http://www.9ku.com/*
// @include    http://www.666ccc.com/*
// @include    http://www.yue365.com/*
// @include    http://dict.cn/*
// @include    *://www.duonao.tv/*
// @include    http://www.webtoons.com/*
// @include    http://v.rongkuai.com/play.html?course_id=*
// @include    http://www.panda.tv/*
// @exclude    http://www.panda.tv/roomframe/*
// @include     http://www.kafan.cn/*
// @exclude   http://www.kafan.cn/home.php?mod=spacecp&ac=avatar
// @description    去除网站的flash插件检测,实现html5播放。
// @homepage    https://www.firefox.net.cn/read-49979-1#read_341320
// @version     4
// @grant       none
// @run-at      document-start
// ==/UserScript==
if (typeof wrappedJSObject === 'undefined') {
    Object.defineProperty(navigator, 'plugins', {
        get: function() {
            return {
                length: 0
            };
        }
    });
} else {
    Object.defineProperty(wrappedJSObject.navigator, 'plugins', {
        value: 0
    });
}