AutoSaveDiv

save and restores div.contenteditable texts

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
Dediggefedde
日安装量
0
总安装量
128
评分
3 0 0
版本
1.04
创建于
2014-12-21
更新于
2018-02-03
大小
3.2 KB
许可证
暂无
适用于
所有网站

About

Did you ever left the page where you were writing some larger text? Like you're writing a new blog-entry and accidentally click on your favourites or alt+left-arrow?

Then you will enjoy Addons like Lazarus or History Form Control that save the content automatically and with a few clicks you can restore any text you like, even after a pc-crash.

Many forums use div elements instead of oldfashioned multiline input fields, though. This is thanks to the contenteditable attribute and is perfect for WYSIWYG editors.

However, Addons like Lazarus and History Form Control fail to recognize them as inputs, so text will be lost on accidents again.

This script jumps in and works only on div-elements as used in many popular forum-software (e.g. deviantart.com, WoltLab etc.) nowadays. It saves the text while you write and can restore it with a simple click should you accidentally delete it.

Manual

When you click into a div-field which is supported, the script will add a little blue mark at the left-bottom-corner of the field. A left-click will de-/activate logging the text. A right-click will restore old text. hovering will display any saved text for this icon. Alternatively you can use ctrl+shift+alt+d to de-/activate and ctrl+shift+alt+s to restore text. When logging is active, the mark will change red and you get a red border around your input-field.