unsafeWindow Proxy for Firefox's Greasemonkey.
npm install greasemonkey-unsafewindow-proxyWorkaround library for unsafeWindow ( Firefox 30 ~ )
See detail on
* Changes to unsafeWindow for the Add-on SDK | Mozilla Add-ons Blog
This library provide proxy object used by new Proxy(unsafeWindow).
``js`
var contentScriptObject = {"greeting" : "hello from add-on"};
unsafeWindow.contentScriptObject = cloneInto(contentScriptObject, unsafeWindow);
// ==
var win = unsafeWindowProxy(unsafeWindow);
var contentScriptObject = {"greeting" : "hello from add-on"};
win.contentScriptObject = contentScriptObject;
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT