ChoiceScript Save Manager

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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