Inject javascript on each page load + hot reload. For local files install npm package 'filesystem-server'
Allows you to inject files into a webpage and automatically re-injecting them every time the page loads for you to test your code in a seemingly live environment from your local machine.
Usage :
1 - For access to your local filesystem install filesystem-server package from npm (https://www.npmjs.com/package/filesystem-server). for this, you will need node and npm already installed. This will install a local server on your machine as well as a self-signed certificate and a crypto key (both valid for 10 years). These will be necessary to inject local code into https websites.
2- Import your new SSL certificate (that you will find inside the node_modules/filesystem-server/security folder in your system library ) to Chrome (follow this guide https://support.securly.com/hc/en-us/articles/206081828-How-to-manually-install-the-Securly-SSL-certificate-in-Chrome ).
3- Install and launch Injector.
4- Launch filesystem-server
5- In the extension, at the top, set the fss (filesystem-server) port to the same port you started fss with.
6- Choose the protocol (http|https).
7- Insert the absolute path or url of the javascript file you want to inject
8- Decide wether you want to enable HOT RELOAD (this will reload the webpage you are injecting into every time you save changes to your local file!)
9- Turn the switch on. When the switch is on the file will be injected automatically every page load ( with the specified time delay (in milliseconds).
------------------------------------------
10- If you work at cloud.IQ, decide wether you want to enable hot reload for JSON config file. (Note: it has to be in the format ' [APP_ID]_plain.json ' and live within the same folder and at the same level as the dev file. You can now work directly on JSON with HOT RELOAD.
------------------------------------------
For contributions:
https://github.com/recreateideas/Injector
https://github.com/recreateideas/filesystem-server