⚡ Flash Player
Enable support for Flash files
Technicality
- This userscript checks for
.swf
elements on every page;
- Upon detection of an
.swf
element, a bar would show up at the top of a page;
- 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
Hides Flash animations until you click on individual [Play Flash] buttons. (v 0.4.) (Update of BlockFlash and BlockFlash-Revisited).
Press Alt+F or Ctrl+Shift+F for permanent unblocking.
Do not start Flash animation until you click on them.
Removes Flash Commercials.
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
Open SWF links of Adobe Animate (Flash) in a pure sandboxed JavaScript emulator.
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 is a Flash Player emulator built in the Rust programming language
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