Last active
February 2, 2016 12:41
-
-
Save saschanaz/3479e7c8a2bafba1ae22 to your computer and use it in GitHub Desktop.
Detectable Shumway
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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