UNPKG

1.12 kBMarkdownView Raw
1Mozilla Firefox added support for screensharing in Firefox 33. The feature is currently only enabled for a small number of whitelisted domains which can be specified in the preferences.
2This extension is a [bootstrapped extension](https://developer.mozilla.org/en/Add-ons/Bootstrapped_extensions) that adds and removes [simplewebrtc.com](https://simplewebrtc.com) from the screensharing whitelist preference without user interaction.
3
4Firefox 52 [will drop](https://www.mozilla.org/en-US/firefox/52.0a2/auroranotes/) the use of a whitelist and therefore also the need for a domain-specific extension.
5
6## How to build your own extension
71. Download this code
82. Replace `simplewebrtc.com` with your domain in `bootstrap.js`
93. If necessary change name and description
104. Create the XPI: `zip screenshare.xpi bootstrap.js install.rdf`
114. [Publish your extension](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Publishing_your_WebExtension)
12
13## License
14MPL 2.0
15
16Based on an [example by Mozilla's Brad Lassey](https://hg.mozilla.org/users/blassey_mozilla.com/screenshare-whitelist/) which is licensed under MPL 2.0