sjehuda / Flash Player (ruffle)

Published:

Version: 24.04+2bb7dd0 updated

Summary: Play flash (.swf) files

Groups:

Homepage: https://openuserjs.org/scripts/sjehuda/Flash_Player_(ruffle)

Support: https://openuserjs.org/scripts/sjehuda/Flash_Player_(ruffle)/issues

Copyright: 2024, Schimon Jehudah (http://schimon.i2p)

License: MIT; https://opensource.org/licenses/MIT

Help making ruffle to work


⚡ Flash Player

Enable support for 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

BlockFlash2

Hides Flash animations until you click on individual [Play Flash] buttons. (v 0.4.) (Update of BlockFlash and BlockFlash-Revisited).

FlashBlock

Press Alt+F or Ctrl+Shift+F for permanent unblocking.

BlockFlash-Revisited

Do not start Flash animation until you click on them.

removeFLash

Removes Flash Commercials.

Hide Objects

Hides object and embed tag contents by replacing it with an empty div. Click on the div to reveal the object tag contents.


Please visit our counterparts

Web Extensions

FlashPlayer

Open SWF links of Adobe Animate (Flash) in a pure sandboxed JavaScript emulator.

Ruffle

Ruffle seamlessly plays Flash content on sites you visit. Enjoy your favorite Flash games from yesteryear!

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

Libraries

Ruffle

ruffle is a Flash Player emulator built in the Rust programming language

swf2js

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‬

Rating: 0