Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/genouka/flashpatcherjs
https://github.com/genouka/flashpatcherjs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/genouka/flashpatcherjs
- Owner: Genouka
- License: mit
- Created: 2024-02-14T04:59:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-14T05:02:10.000Z (11 months ago)
- Last Synced: 2024-02-14T06:22:22.282Z (11 months ago)
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FlashPatcherJS
这是一个在不支持Flash的手机或者电脑浏览器支持查看Flash的油猴脚本!
代码很简单,直接导入到你的脚本管理器即可。
手机浏览器建议使用Via加载本脚本。
```js
// ==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() {
});})();
```