Greasy Fork 还支持 简体中文。

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.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Salvatos
今日安裝
0
安裝總數
1
評價
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