navigator.plugins spoofing

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

目前为 2017-05-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name navigator.plugins spoofing
  3. // @namespace aaaa007cn
  4. // @author aaaa007cn
  5. // @include http://play.baidu.com/*
  6. // @include http://fm.baidu.com/*
  7. // @include *://www.baidu.com/
  8. // @include http://5sing.kugou.com/*
  9. // @include http://www.beiwo.ac/*
  10. // @include http://www.dongting.com/*
  11. // @include http://fm.dongting.com/*
  12. // @include http://www.duole.com/*
  13. // @include *://music.douban.com/*
  14. // @include http://papa.me/*
  15. // @include http://www.1ting.com/*
  16. // @include http://www.9ku.com/*
  17. // @include http://www.666ccc.com/*
  18. // @include http://www.yue365.com/*
  19. // @include http://dict.cn/*
  20. // @include *://www.duonao.tv/*
  21. // @include http://www.webtoons.com/*
  22. // @include http://v.rongkuai.com/play.html?course_id=*
  23. // @include http://www.panda.tv/*
  24. // @exclude http://www.panda.tv/roomframe/*
  25. // @include http://www.kafan.cn/*
  26. // @exclude http://www.kafan.cn/home.php?mod=spacecp&ac=avatar
  27. // @description 去除网站的flash插件检测,实现html5播放。
  28. // @homepage https://www.firefox.net.cn/read-49979-1#read_341320
  29. // @version 3.1
  30. // @grant none
  31. // @run-at document-start
  32. // ==/UserScript==
  33. Object.defineProperty(navigator, 'plugins', {
  34. get: function () {
  35. return { length: 0 };
  36. }
  37. });