Rapptz / jimaku

A site for hosting (Japanese) subtitles
https://jimaku.cc
GNU Affero General Public License v3.0
60 stars 3 forks source link

Add license information in *.js files #9

Closed tatsumoto-ren closed 5 months ago

tatsumoto-ren commented 5 months ago

Related to #7. Related to https://github.com/tatsumoto-ren/tatsumoto-ren.github.io/pull/28

As I said there, I don't know what to do with https://cdn.jsdelivr.net/npm/@scalar/api-reference yet, but if this is merged, all pages except the API reference should work fine.

Rapptz commented 5 months ago

I'd rather not have a huge chunk of license text in every single download for these JS files. If the blurb would be smaller that'd probably be fine, like an SPDX license identifier or a comment such as:

/* This file is licensed under AGPL-3.0 */
tatsumoto-ren commented 5 months ago

I'd rather not have a huge chunk of license text in every single download for these JS files.

There's a different method to tag your JavaScript as free, according to the same docs.

<script>
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
var myString = "Hello World!";
alert(myString);
// @license-end
</script>

Maybe it could be used instead.