Skip to content

Instantly share code, notes, and snippets.

@saschanaz
Last active February 2, 2016 12:41
Show Gist options
  • Select an option

  • Save saschanaz/3479e7c8a2bafba1ae22 to your computer and use it in GitHub Desktop.

Select an option

Save saschanaz/3479e7c8a2bafba1ae22 to your computer and use it in GitHub Desktop.
Detectable Shumway
// ==UserScript==
// @name Dumway
// @namespace Flash
// @include *
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
// From https://github.com/mozilla/shumway/issues/2317#issuecomment-163005209
let Shumway = [];
Shumway.push({
description: "Shockwave Flash",
enabledPlugin: Shumway,
suffixes: "swf",
type: "application/x-shockwave-flash"
},
{
description: "FutureSplash Player",
enabledPlugin: Shumway,
suffixes: "spl",
type: "application/futuresplash"
});
Shumway["application/x-shockwave-flash"] = Shumway[0];
Shumway["application/futuresplash"] = Shumway[1];
Shumway.description = "Shockwave Flash 20.0 r235";
Shumway.filename = null;
Shumway.name = "Shockwave Flash";
Shumway.version = "20.0.0.235"; //"11.2.202.451";
navigator.plugins["Shockwave Flash"] = Shumway;
navigator.mimeTypes[Shumway[0].type] = Shumway[0];
navigator.mimeTypes[Shumway[1].type] = Shumway[1];
console.log(Shumway);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment