> I've added some popular JS libraries and improved the shell script to > directly generate the JSON object.
Excellent.. thanks. I'll apply your patch now. > Perhaps I can think about a way to make this process easier. Some > libraries like jQuery and Bootstrap have frequent updates. It would be > helpful if LibreJS includes such libraries with only minimal manual work. Yeah, any suggestions on how to make this easier would be good. Mozilla also has a scheme for whitelisting scripts, which they do when inspecting add-ons going into their repository. They have this script: https://github.com/mozilla/amo-validator/blob/master/extras/jslibfetcher.py that downloads the scripts, then the build_whitelist.py script in that directory makes a whitelist file. As I was looking into this I found out that an older version of that code is actually included in the LibreJS repository here: http://bzr.savannah.gnu.org/lh/librejs/dev/files/head:/tools/library-fetch-tools/ So going forward, we could go the jslibfetcher route, or use gethash.sh, or something different altogether.
