ChoiceScript Save Manager

Adds a full save/load system to ChoiceScript games with multiple slots, quick saves, compression and import/export.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
cxcp
日安装量
0
总安装量
2
评分
0 0 0
版本
1.0.0
创建于
2026-02-24
更新于
2026-02-24
大小
30.2 KB
许可证
MIT
适用于

ChoiceScript Save Manager

Adds a multi-slot save/load system to ChoiceScript games with quick saves and portable backups.

ChoiceScript titles normally rely on autosave and do not provide manual save slots.
This userscript adds a minimal-overhead in-browser save manager that allows multiple named saves, quick save rotation, and export/import of save data.

Features

  • Multiple manual save slots
  • Quick save rotation
  • Rename and delete saves
  • Import / export save backups (JSON)
  • Per-game save isolation
  • Local browser storage (IndexedDB)
  • Optional compression using LZ-String (enabled by default)
  • Minimal-overhead UI overlay
  • Compatible with official and hosted ChoiceScript games

Installation

  1. Install a userscript manager:

    • Tampermonkey
    • Violentmonkey
    • Greasemonkey
  2. Install the script:

Usage

When a ChoiceScript game loads, a floating control panel appears.

Buttons:

  • Save: create a new named save
  • Quick Save: rotate through quick slots
  • Manager: open save manager UI

Manager allows:

  • load
  • rename
  • delete
  • export
  • import
  • search and sort

Data Storage

  • Saves are stored locally in your browser (IndexedDB)
  • No network requests or external services
  • Saves are isolated per game
  • Export produces portable JSON backups

Compatibility

Works with:

  • Choice of Games titles
  • Hosted ChoiceScript games
  • Self-hosted ChoiceScript builds

Optional matches (disabled by default):

// @match *://cogdemos.ink/play/*
// @match *://*.itch.zone/*

These platforms may already include their own save systems.

License

MIT License
Copyright (c) 2026 cxcp

Acknowledgments

Uses LZ-String by Pieroxy for optional compression:
https://github.com/pieroxy/lz-string

Inspired by earlier community save plugins:

ChoiceScriptSavePlugin (CJW / ChoiceScriptIDE)
https://github.com/ChoicescriptIDE/ChoiceScriptSavePlugin
https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-sept-2019/983

ChoiceScriptSavePluginInjector (AbrahamAriel)
https://gist.githubusercontent.com/AbrahamAriel/7a8d7cea1d8cbcd82700d67a09942a47/
https://www.reddit.com/r/choiceofgames/comments/ovo3eh/choicescriptsaveplugininjector_add_save_system_to/

This project is an independent implementation using IndexedDB and modern userscript architecture.

Repository

Source and issues:
https://github.com/cxcp/choicescript-save-manager