To use the development version:
- Clone the repo:
git clone https://github.com/RetireJS/retire.js - Install the requirements: npm - https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
- Run
./build_chrome.sh(Linux) or./build_chrome.bat(Windows) from the root of the repo - Open chrome://extensions/
- Check "Developer mode"
- Click "Load unpacked" at the top left, and select the
chrome/extensionorchrome/extension-no-funcfolder inside the repo - Use and develop
To test the reporting, you can visit the demo page at https://erlend.oftedal.no/blog/retire/
The default extension loads the downloaded scripts in an iframe and then tries to invoke JavaScript functions from the downloaded repo (like jQuery.fn.version) in a sandbox to try to
detect certain libraries. If this is not acceptable security-wise, you can use extension-no-func, which does not invoke those functions.
Be wary when updating the files, as files not related to no-func, are symlinked between the two versions to avoid having to update in both places.