firenvim
firenvim copied to clipboard
FireNVim does not work with codesignal
- 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.
Looks like the page's CSP prevents injecting the scripts that work with monaco.
Looks like the page's CSP prevents injecting the scripts that work with monaco.
is it possible to hack the page's CSP?
No, it's not.
At least that site has got VIM mode, I wish FreeCodeCamp would also do.
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