Play flash (.swf) files
目前為
// ==UserScript==
// @name Flash Player (ruffle)
// @namespace i2p.schimon.ruffle
// @description Play flash (.swf) files
// @homepageURL https://greasyfork.org/en/scripts/490282-flash-player-ruffle
// @supportURL https://greasyfork.org/en/scripts/490282-flash-player-ruffle/feedback
// @copyright 2024, Schimon Jehudah (http://schimon.i2p)
// @license MIT; https://opensource.org/licenses/MIT
// @require https://unpkg.com/@ruffle-rs/ruffle/ruffle.js
// @match file:///*
// @match *://*/*
// @version 24.03
// @grant none
// @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48dGV4dCB5PSIuOWVtIiBmb250LXNpemU9IjkwIj7imqE8L3RleHQ+PC9zdmc+Cg==
// ==/UserScript==
(function() {
// The @require directive will automatically load Ruffle, so no further action is needed.
'use strict';
// The following code is used as a backup system.
let ruffleScript = document.createElement('script');
// Use the CDN version of Ruffle
ruffleScript.src = 'https://unpkg.com/@ruffle-rs/ruffle';
document.head.appendChild(ruffleScript);
})();