LibreJS: Free JavaScript in your browser

LibreJS module provides compatibility with the LibreJS browser plugin. It allows site administrators to configure the license and source code URL of each JavaScript file used by the site, and adds metadata to pages indicating that all inline JavaScript in the page is GPL v3+.

After installing the module, visit admin/config/development/librejs to configure the license and source code URL for each JavaScript file. LibreJS module will only discover JavaScript files as they are loaded when users visit various pages, so you will have to visit this page repeatedly to configure additional JavaScript files which have been detected.

The list of JavaScript licenses and source code URLs can then be viewed at librejs/jslicense by all roles granted the "access JavaScript license information" permission.

The license for inline and aggregated JavaScript code is GPL v3+ for compatibility with any Apache License v2.0 or AGPL v3 code which may be present (Apache License v2.0 and AGPL v3 are not compatible with GPL v2).

Note: You should only install this module if you are sure all inline JavaScript on your site can in fact be distributed under GPL v3+, and is not proprietary. Non-inline JavaScript (local files and external URLs) may use other licenses. Because the aggregated JavaScript files are tagged as GPL v3+, JavaScript files which have a non-free license (or have not yet had their license configured) will no longer be aggregated while LibreJS module is enabled.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.1 tar.gz (10.96 KB) | zip (13.1 KB) 2012-Nov-27 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (10.96 KB) | zip (13.11 KB) 2013-Mar-17 Notes

Project Information


Maintainers for LibreJS

  • mfb - 12 commits
    last: 9 weeks ago, first: 27 weeks ago

Issues for LibreJS

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here