☰

JanitorAI Lorebook Exporter

Export JanitorAI lorebooks as SillyTavern World Info JSON.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

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

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

Maker
Leon Marzahn
Dagelijks aantal installaties
4
Totaal aantal installaties
129
Beoordelingen
1 0 0
Versie
0.2.2
Gemaakt op
18-10-2026
Bijgewerkt op
18-10-2026
Grootte
14,9 KB
Licentie
MIT
Wordt toegepast op

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