/STExtension-Snapshot

Takes a snapshot of the current chat and makes an image of it for easy sharing.

Primary LanguageJavaScriptMIT LicenseMIT

STExtension-Snapshot

Takes a snapshot of the current chat and makes an image of it for easy sharing. All styling is respected, and the width of the messages is decided by your chat width, for narrower/longer message blocks in the resulting image, turn up or down your chat width!

Please use an up to date SillyTavern.


Tutorial:

tutimage

  1. Open Extensions Menu
  2. Open "Install Extenstion"
  3. Paste the extension link: "https://github.com/TheZennou/STExtension-Snapshot"
  4. Click Save, and you're done! :)

Has two modes,

  1. "regular" which creates a long vertical list of the messages, pretty much a giant version of what you see in SillyTavern.
  2. "grid" which makes a column based grid of messages in a rectangular shape.

You can trigger a snapshot through the button in the extensions menu. Then Pressing "List Snapshot" or "Grid Snapshot".

Additonally a command version is provided: /snapshot {optional: format=grid}, {optional: range=1-10}, {optional: anonymize=true}.

(Command version was added solely to make ross happy)

Additonal features:

  • Ability to specify a range of messages to be captured i.e. (11-42)
  • Mobile compatibility (Even big logs!)
  • Anonymize {{user}} and stylesheet.
  • Firefox support

Showcase: Showcase Anonmyize Showcase: Anonymize Showcase Range Showcase: Range Showcase


Issues?

  • Biggest issues arise from having CORS policy set to strict.
  • Outdated ST. The extension relies on having SillyTavern 1.12.0 or newer, please update if you're having issues.
  • Still not resolved? Reach out; Zennou.dev or open an issue.

Credits:

Thanks to html2canvas. Fuck dom-to-image-more.

My soundtrack while making this: https://youtu.be/4koCpY4iYhI?si=1jbAnNNJeY3_ZP6E