LocalStorageDB

LocalStorageDB Script

目前為 2015-12-16 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @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