firenvim icon indicating copy to clipboard operation
firenvim copied to clipboard

FireNVim does not work with codesignal

Open huangyingw opened this issue 3 years ago • 5 comments

  • OS Version: macOS 12.5.1
  • Browser Version: Chrome 104.0.5112.101
  • Browser Addon Version: 0.2.13
  • Neovim Plugin Version: 0.2.13

What I tried to do

Try to use FireNVim to edit the textbox of codesignal live interview page, url like: https://app.codesignal.com/arcade/intro/level-1/jwr339Kq6e3LQTsfa The above url is a free exercise, once you sign up, and you could do exercise with.

What happened

No nvim appear.

huangyingw avatar Aug 22 '22 05:08 huangyingw

Looks like the page's CSP prevents injecting the scripts that work with monaco.

glacambre avatar Aug 22 '22 05:08 glacambre

Looks like the page's CSP prevents injecting the scripts that work with monaco.

is it possible to hack the page's CSP?

huangyingw avatar Aug 24 '22 04:08 huangyingw

No, it's not.

glacambre avatar Aug 24 '22 04:08 glacambre

At least that site has got VIM mode, I wish FreeCodeCamp would also do.

acicco avatar Aug 25 '22 12:08 acicco

The real reason it's not working is that since version 0.22.0 monaco-editor stopped exposing global window.monaco which the editor-adapter relied on. The global window.monaco can be exposed by setting to true to monaco webpack globalAPI options

drselump14 avatar Jan 15 '23 08:01 drselump14