Automatically replaces links to YouTube videos that have @ before them with HTML tags in chat messages.
  • JavaScript 100%
Find a file
2024-04-28 20:57:03 +03:00
index.js Disable autoplay 2024-04-28 20:57:03 +03:00
LICENSE Create LICENSE 2024-04-28 15:09:48 +03:00
manifest.json Add extension files 2024-04-26 01:17:38 +03:00
README.md Add video info macros 2024-04-28 18:28:27 +03:00

Playable YouTube videos

Requires a server plugin to function! Install it from here: SillyTavern-YouTube-Videos-Server

Insert videos

Automatically replaces links to YouTube videos that have @ before them with HTML <video> tags in chat messages.

Example 1

Insert any URL instead of youtu.be/zFfL0y3zyfc.

@youtu.be/zFfL0y3zyfc => <video src="/api/plugins/youtube/play/https://youtu.be/zFfL0y3zyfc" controls="" autoplay="" style="width: 100%; height: auto;"></video>

Fetch video info

This extension provides a set of macros to get various information about the YouTube video.

Example 2

Insert any video ID or URL instead of zFfL0y3zyfc.

{{yt-title::zFfL0y3zyfc}} => video title
{{yt-uploader::zFfL0y3zyfc}} => uploader name
{{yt-thumb::zFfL0y3zyfc}} => URL to thumbnail image
{{yt-thumb-img::zFfL0y3zyfc}} => thumbnail image as Markdown embed (requires External Media to be enabled!)
{{yt-length::zFfL0y3zyfc}} => length of the video (in minutes:seconds)
{{yt-views::zFfL0y3zyfc}} => number of video views
{{yt-description::zFfL0y3zyfc}} => video description

License

AGPLv3