7bb2b5918f
In some cases, extension API abstraction objects can be assigned directly with the equivalent extension API namespace. This reduces much trivial code that just duplicates all the needed functions. Also, extract `promisifyStorageArea` to share duplicate code between the conversions of `chrome.storage.local` and `chrome.storage.sync` (though `local` is not currently used). |
||
---|---|---|
.. | ||
assets | ||
src | ||
tools | ||
.gitignore | ||
LICENSE_APACHE | ||
LICENSE_MIT | ||
README.md | ||
manifest.json5 | ||
package.json | ||
tsconfig.json | ||
webpack.config.js |
README.md
ruffle-extension
ruffle-extension is all of the power of Ruffle, in your browser.
Without needing websites to do anything, the browser extension automatically replaces any Flash content on websites with the Ruffle player.
It automatically negotiates with websites that do have Ruffle installed, to ensure that there is no conflict between the versions. Newer version of ruffle, either from the website or extension, will always take precedence and disable the other.
Using ruffle-extension
The browser extension works in Chrome, Firefox, and Safari 14+.
Before you can install the extension, you must either download the latest release or build it yourself.
Chrome
These instructions also apply to Chromium-based browsers such as Edge, Opera and Brave.
- Navigate to
chrome://extensions/
. - Turn on Developer mode in the top-right corner.
- Drag and drop the
*_extension.zip
file into the page.
Alternatively, loading unpacked can save time during development:
- Navigate to
chrome://extensions/
. - Turn on Developer mode in the top-right corner.
- Click "Load unpacked".
- Select the
assets/
folder. - Each time after making changes, click the reload icon.
Firefox
- Navigate to
about:addons
. - Click the gear and select "Install Add-on From File...".
- Select the
.xpi
file.
Safari
- Unzip the
*_extension.zip
file. - Run
xcrun safari-web-extension-converter path/to/unzipped_folder/
- Click "Run on Xcode".
- Enable
Safari > Preferences > Advanced > Show Develop menu in menu bar
. - Enable
Develop > Allow Unsigned Extensions
. - Enable the extension by checking the box in
Safari > Preferences > Extensions
.
Building, testing or contributing
Please see the ruffle-web README.