greasemonkey-unsafewindow-proxy

0.0.4 • Public • Published

Greasemonkey-unsafeWindow-Proxy

Workaround library for unsafeWindow ( Firefox 30 ~ )

See detail on

This library provide proxy object used by new Proxy(unsafeWindow).

Usage

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;

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

/greasemonkey-unsafewindow-proxy/

    Package Sidebar

    Install

    npm i greasemonkey-unsafewindow-proxy

    Weekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • azu