☰

JanitorAI Lorebook Exporter

Export JanitorAI lorebooks as SillyTavern World Info JSON.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
Leon Marzahn
จำนวนติดตั้งประจำวัน
2
จำนวนติดตั้งทั้งหมด
2
คะแนน
0 0 0
เวอร์ชัน
0.2.2
สร้างเมื่อ
18-10-2026
อัปเดตเมื่อ
18-10-2026
Size
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