🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Ruffle Flash Player

Play flash (.swf) files

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

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.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

ئاپتورى
Schimon
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
95
باھا نومۇرى
0 0 0
نەشرى
25.12
قۇرۇلغان ۋاقتى
2024-03-19
يېڭىلانغان ۋاقتى
2025-12-01
Size
1.7 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى
بارلىق بېكەتلەر

Help making ruffle to work


⚡ Flash Player

Enable support of Flash files.

Technicality

  1. This userscript checks for .swf elements on every page;
  2. Upon detection of an .swf element, a bar would show up at the top of a page;
  3. Once the bar is clicked upon, the script would load Ruffle (from CDN unpkg.com), and will set "Ruffle" instances for every flash object on a given page.

Testing

You can test this userscript at randomfoo.net (presentation) and andkon.com (game).

About

  • This userscript uses Ruffle to make it possible to play .swf files.
  • See also: version of swf2js.

Help

This script calls external CDN every time you activate it. It would be preferable to load it from your own machine. See Help making ruffle to work.

Bookmarklet

Bookmarklet version of this userscript:

javascript:(function(){'use strict';let ruffleScript=document.createElement('script');ruffleScript.src='https://unpkg.com/@ruffle-rs/ruffle';document.head.appendChild(ruffleScript)})();

Recommended Userscripts


Please visit our counterparts

Read this: A Post-Mortem Of Ruffle's Removal From Addons Repository.

Libraries

  • Ruffle https://ruffle.rs ruffle is a Flash Player emulator built in the Rust programming language

  • swf2js https://swf2js.com swf2js is Flash Player Runtime Engine written in pure JavaScript


Upcoming changes

  • Handle full-view (i.e. when page is opened on .swf);
  • document.contentType is application/x-shockwave-flash or text/plain;
  • Check for HTTP 404 status.

🦅 Designed for Falkon web browser