DataCache - Simple storage wrapper

Allows JSON data to be persisted easily by user scripts

As of 15.06.2015. See ბოლო ვერსია.

ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greatest.deepsurf.us/scripts/10443/56961/DataCache%20-%20Simple%20storage%20wrapper.js.

ავტორი
spiralx
ვერსია
0.0.1.20150615033807
შექმნილია
15.06.2015
განახლებულია
15.06.2015
Size
1,39 KB
ლიცენზია
პ/გ

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