I’ve made a simple userscript which automatically synchronizes selected file and codingame IDE. It adds file input near reload button.
Works with Firefox (with Greasemonkey) and Chrome (with Tampermonkey).
Just click Install and you should get confirmation window (try refreshing opened page if nothing appears). Confirm there and the new input should appear after you refresh an IDE page.
After that you can select a file using the new input and its contents will be automatically synced to the IDE.
Could you provide some installation steps?
I am not able to make it working.
Thank you, it works fine.
Hey guys =)
I’ve fixed a nasty bug which prevented input from showing up unless a page reload is made on the IDE page.
Script now uses MutationObserver API to catch appear and disappear events of the IDE.
Unfortunately, this script is no longer works in firefox 43/44+ (I don’t know the exact version).
Firefox now prevents reading changed files. =(
It works for me in Firefox 49. However, I did notice it doesn’t continue to sync after clicking Play so you have to reselect the file. However, it’s still better than nothing.