// ==UserScript==
// @name view web storage
// @description web storage viewer
// @include http://*
// @require http://code.jquery.com/jquery-1.4.2.min.js
// ==/UserScript==
/*
* @title view web storage
* @description web storage viewer
* @include http://*
* @license MIT License
* @require jquery
*/
var css = [
'body {',
' margin: 0;',
' padding: 0;',
'}',
'h1 {',
' font-size: 20px;',
' text-align: center;',
' padding: 10px;',
' margin: 0;',
'}',
'h2 {',
' font-size: 18px;',
' text-align: center;',
' padding: 10px;',
' background: #EEE;',
'}',
'table {',
' width: 100%;',
' border-collapse: collapse;',
' font-size: 14px;',
'}',
'td, th {',
' border: 1px solid #333;',
' padding: 5px;',
'}',
'th {',
' background: #e2e7ff;',
'}',
].join('');
var html = [
'
storage確認ページ
',
'sessionStorage
',
'',
' ',
' ',
' ',
' ',
' キー | ',
' 値 | ',
' 削除 | ',
'
',
'
',
'',
'localStorage
',
'',
' ',
' ',
' ',
' ',
' キー | ',
' 値 | ',
' 削除 | ',
'
',
'
'
].join('');
$('head').empty().append( $('