Here is a JS code that would allow ruffle to load SWF on a given page which has SWF embedded.

(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 = '';



It would be good to know how to make that code to work as userscript, loading the ruffle library from metablock // @require

Thank you for any help!