[GH-ISSUE #625] Make Asciinema compatible with LibreJS #320

Open
opened 2026-02-25 20:33:20 +03:00 by kerem · 1 comment
Owner

Originally created by @ole-tange on GitHub (Apr 15, 2024).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/625

I found out it is really not that hard to make Asciinema compatible with LibreJS. Add this to *.js:

// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt   
[code]
// @license-end

And for inline code:

  <script>
    // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt        
    AsciinemaPlayer.create('parallel.cast', document.getElementById('asciinema1'));
    // @license-end                                                                                
  </script>

See a live example on:

https://www.gnu.org/software/parallel/

May I suggest you insert these two lines in the js, and update the doc to add the lines to

Originally created by @ole-tange on GitHub (Apr 15, 2024). Original GitHub issue: https://github.com/asciinema/asciinema/issues/625 I found out it is really not that hard to make Asciinema compatible with LibreJS. Add this to *.js: ~~~ // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt [code] // @license-end ~~~ And for inline code: ~~~ <script> // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt AsciinemaPlayer.create('parallel.cast', document.getElementById('asciinema1')); // @license-end </script> ~~~ See a live example on: https://www.gnu.org/software/parallel/ May I suggest you insert these two lines in the js, and update the doc to add the lines to <script>, so we can help LibreJS spread free JavaScript?
Author
Owner

@septatrix commented on GitHub (Nov 11, 2024):

May I suggest you insert these two lines in the js, and update the doc to add the lines to

<!-- gh-comment-id:2469189606 --> @septatrix commented on GitHub (Nov 11, 2024): > May I suggest you insert these two lines in the js, and update the doc to add the lines to <script>, so we can help LibreJS spread free JavaScript? I fear this will just confuse most people. Furthermore, any common bundler will just remove those lines again
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#320
No description provided.