DataCache - Simple storage wrapper

Allows JSON data to be persisted easily by user scripts

Versão de: 15/06/2015. Veja: a última versão.

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyforks.org/scripts/10443/56961/DataCache%20-%20Simple%20storage%20wrapper.js

Autor
spiralx
Versão
0.0.1.20150615033807
Criado
15/06/2015
Atualizado
15/06/2015
Tamanho
1,39 KB
Licença
N/A

Automates storing data as a JSON object. Example:

var cache = new DataCache('linked-urls');

cache.setValue('moo', 'http://google.com');

var moo = cache.getValue('moo', 'DEFAULT');

// --------------------------------------------------------------------------

GM_registerMenuCommand('Edit cache', function() {
  cache.edit();
}, 'p');
长期地址
遇到问题?请前往 GitHub 提 Issues。