123 localStorage.removeItem("{0}" + aKey); |
123 localStorage.removeItem("{0}" + aKey); |
124 }} |
124 }} |
125 |
125 |
126 function GM_getValue(aKey, aDefault) {{ |
126 function GM_getValue(aKey, aDefault) {{ |
127 var val = localStorage.getItem("{0}" + aKey) |
127 var val = localStorage.getItem("{0}" + aKey) |
128 if (null === val && 'undefined' != typeof aDefault) return aDefault; |
128 if (null === val) return aDefault; |
129 return val; |
129 return val; |
130 }} |
130 }} |
131 |
131 |
132 function GM_listValues() {{ |
132 function GM_listValues() {{ |
133 var values = []; |
133 var values = []; |