Skip to content

一个在不支持Flash的手机或者电脑浏览器支持查看Flash的油猴脚本

License

Notifications You must be signed in to change notification settings

Genouka/FlashPatcherJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

FlashPatcherJS

这是一个在不支持Flash的手机或者电脑浏览器支持查看Flash的油猴脚本!

代码很简单,直接导入到你的脚本管理器即可。

手机浏览器建议使用Via加载本脚本。

// ==UserScript==
// @name         Flash播放补丁
// @namespace    https://genouka.rr.nu
// @author       Genouka
// @version      0.1
// @run-at       document-start
// @match        *
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_deleteValue
// @grant        GM_listValues
// @grant        GM_getResourceText
// @grant        GM_getResourceURL
// @grant        GM_addElement
// @grant        GM_addStyle
// @grant        GM_setClipboard
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// ==/UserScript==

(function(){

var loadJS=function(url, callback) {
  var script = document.createElement('script'),
    fn = callback || function() {};
  script.type = 'text/javascript';
  if (script.readyState) {
    script.onreadystatechange = function() {
      if (script.readyState == 'loaded' || script.readyState == 'complete') {
        script.onreadystatechange = null;
        fn();
      }
    };
  } else {
    script.onload = function() {
      fn();
    };
  }
  script.src = url;
  document.getElementsByTagName('head')[0].appendChild(script);
}

loadJS("//unpkg.zhimg.com/@ruffle-rs/ruffle", function() {
  
});

})();

About

一个在不支持Flash的手机或者电脑浏览器支持查看Flash的油猴脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published