DataCache - Simple storage wrapper

Allows JSON data to be persisted easily by user scripts

Mint 2015.06.15.. Lásd a legutóbbi verzió

Ezt a szkriptet nem ajánlott közvetlenül telepíteni. Ez egy könyvtár más szkriptek számára, amik tartalmazzák a // @require https://update.greatest.deepsurf.us/scripts/10443/56961/DataCache%20-%20Simple%20storage%20wrapper.js hivatkozást.

Fejlesztő
spiralx
Verzió
0.0.1.20150615033807
Létrehozva
2015.06.15.
Frissítve
2015.06.15.
Size
1 KB
Licensz
Ismeretlen

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');