Greasy Fork is available in English.

GM DataStore

Easy to use storage system for scripts using GM_getValue and GM_setValue

此脚本不应被直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://greasyfork.org/scripts/418856-gm-datastore/code/GM%20DataStore.js?version=882276

作者
Dev ABC
得分
0 0 0
版本
1.0.0
创建日期
2020-12-19
最近更新
2020-12-19
许可协议
不适用
应用到
所有站点

GM DataStore

Easy to use storage system for scripts using GM_getValue and GM_setValue

How To Use:

in('your meta tag');

// @require https://greasyfork.org/scripts/418856-gm-datastore/code/GM%20DataStore.js

in('your script code');

const storage = DataStore('scriptStorage' /* storage id/key */);

storage.latest = Date.now();
storage.storedVal = 5;

alert(storage.storedVal);

Enjoy,
ABC

All Rights Reserved © ABC 2020