☰

JanitorAI Lorebook Exporter

Export JanitorAI lorebooks as SillyTavern World Info JSON.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey, Greasemonkey или Violentmonkey.

Вам потребуется установить расширение, например Tampermonkey или Violentmonkey, чтобы установить этот скрипт.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Violentmonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Userscripts.

Чтобы установить этот скрипт, сначала вы должны установить расширение браузера, например Tampermonkey.

Чтобы установить этот скрипт, вы должны установить расширение — менеджер скриптов.

(у меня уже есть менеджер скриптов, дайте мне установить скрипт!)

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

(у меня уже есть менеджер стилей, дайте мне установить скрипт!)

Автор
Leon Marzahn
Установок в день
2
Всего установок
2
Оценки
0 0 0
Версия
0.2.2
Создано
18.10.2026
Обновлено
18.10.2026
Размер
14,9 КБ
Лицензия
MIT
Работает на

JanitorAI Lorebook Exporter

A userscript that exports JanitorAI lorebooks as SillyTavern World Info JSON.

Features

  • Adds a ⬇ SillyTavern button next to the clone button on lorebook pages (janitorai.com/scripts/<id>).
  • Adds a ⬇ ST button to lorebook cards on character pages, when the page lists them.
  • Floating 📖 panel (bottom right) to export every lorebook attached to the current character page.
  • Convert a JanitorAI lorebook JSON file you already have, using the panel's file picker.
  • Wraps every entry's content in a tag named after the entry, e.g. an entry called Mika becomes <Mika>…</Mika>.

Install

  1. Install a userscript manager such as Tampermonkey.
  2. Install the script from its Sleazy Fork page.
  3. Open janitorai.com.

Usage

  1. Open a lorebook page, e.g. https://janitorai.com/scripts/<id>.
  2. Click ⬇ SillyTavern. A <title>.worldinfo.json file downloads.
  3. In SillyTavern, open World Info and use Import World Info to load the file.

On a character page you can instead open the 📖 panel and click Export lorebook(s) for this page. The script also looks through the creator's public scripts for lorebooks attached to that character, since the character page doesn't always list them.

Tag wrapping

Tag names come from the entry name:

Entry name Output
Mika <Mika>…</Mika>
Jessie's Room <Jessies_Room>…</Jessies_Room>
(no name) first keyword, or Entry_<n>

Apostrophes and quotes are dropped, and other characters that aren't letters, digits, _, . or - become _.

Field mapping

JanitorAI SillyTavern
key key
keysecondary keysecondary (selective on when present)
selectiveLogic selectiveLogic
constant constant
enabled disable (inverted)
probability probability / useProbability
insertion_order order
placementPosition (before) position 0, otherwise 1 (after character)
inclusionGroup group
minMessages delay
case_sensitive, matchWholeWords same

Anything else gets SillyTavern's defaults.

Limitations

  • Private lorebooks can't be exported. If the creator turned off code sharing, JanitorAI doesn't send the entries to anyone but the creator. The script reports this instead of exporting. Only the creator can export it. If the lorebook is a copy of a public one, export the original instead.
  • Entries are read through JanitorAI's own site API using your browser session, so if JanitorAI changes it, the script may need an update.
  • Button placement depends on the site's current layout. If a button is missing, the 📖 panel still works.

License

MIT