[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unable to mark script as CC-BY-SA-4.0: Unrecognized license tag
From: |
j . cogle |
Subject: |
Unable to mark script as CC-BY-SA-4.0: Unrecognized license tag |
Date: |
Sat, 04 May 2024 09:16:21 +0000 |
Hello,
In a page I control, I am unable to mark an inline script as CC-BY-SA-4.0 in a
way that LibreJS can recognize. With the script shown in the below snippet
(i.e. without a magnet link), LibreJS blocks the script, saying:
> Unrecognized license tag: "// @license CC-BY-SA-4.0 // https://
stackoverflow.com/a/56550819"
JS script:
>// @license CC-BY-SA-4.0
>
> // https://stackoverflow.com/a/56550819
> function detectColorScheme() {
> var theme = "light"; //default to light
> ...[JS elided for brevity]
> detectColorScheme();
>
> // @license-end
As you can see, the "@license" comment has no magnet link, since there is not
one published at https://www.gnu.org/software/librejs/manual/html_node/
Setting-Your-JavaScript-Free.html#License-tags
If I instead add a magnet link from a license that _does_ have one (e.g.
AGPL-3.0), then LibreJS recognizes the snippet as AGPL-3.0:
LibreJS
> Recognized license: "GNU AFFERO GENERAL PUBLIC LICENSE version 3".
JS script:
>// @license magnet:?xt=urn:btih:
0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt CC-BY-SA-4.0
>
> // https://stackoverflow.com/a/56550819
> function detectColorScheme() {
> var theme = "light"; //default to light
>...
How can I get LibreJS to recognize this script's CC-BY-SA-4.0 license?
Best regards,
j
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Unable to mark script as CC-BY-SA-4.0: Unrecognized license tag,
j . cogle <=