LocalStorageDB

LocalStorageDB Script

当前为 2015-12-16 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/14976/94704/LocalStorageDB.js

!function(e,t){function n(e,n){function f(){if(u.hasOwnProperty(i)){delete u[i]}o=null}function l(){var e=0;for(var t in o.tables){if(o.tables.hasOwnProperty(t)){e++}}return e}function c(e){return o.tables[e].fields}function h(e){return o.tables[e]?true:false}function p(e){if(!h(e)){O("The table '"+e+"' does not exist")}}function d(e,t){var n=false;var r=o.tables[e].fields;for(var i in r){if(r[i]==t){n=true;break}}return n}function v(e,t){o.tables[e]={fields:t,auto_increment:1};o.data[e]={}}func