Kanka Autosaves

Saves a copy of the editor's content to local storage at set intervals so you can recover it if you forget to save or lose connection.

作者
Salvatos
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1
建立日期
2025-03-09
更新日期
2025-03-09
尺寸
5.4 KB
授權條款
MIT
腳本執行於

This plugin creates a backup of Kanka’s editor’s content in your browser’s local storage at set intervals (5 minutes by default). You can use a button in the editor’s toolbar to see existing snapshots and paste any of them into the current editor (without overwriting existing content). Useful when you accidentally close a tab without saving, or if an error or connection issue prevents a save from going through.

Note that snapshots are saved to the browser’s local storage, so the recovered data is dependent on the machine and user session used and may be lost if you clear your cookies, cache and similar browser information.

Preferences

Near the top of the script, you can find two configurable settings:

/* Preferences */
const interval = 5; // in minutes
const snapshots = 10; // how many snapshots to keep in storage

The first number allows you to control how often a snapshot is saved, in minutes.
The second number controls how many snapshots are kept in storage. Note that this limit is shared among all entities; if you have more than 10 tabs open with an editor and the limit is set to 10, some snapshots will be overwritten before you really get a chance to use them.


If my scripts are making your life easier, please consider tipping via Ko-fi (no account needed):

Support me on Ko-fi.com

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址