130 values_js = """ |
130 values_js = """ |
131 function GM_deleteValue(aKey) {{ |
131 function GM_deleteValue(aKey) {{ |
132 localStorage.removeItem("{0}" + aKey); |
132 localStorage.removeItem("{0}" + aKey); |
133 }} |
133 }} |
134 |
134 |
135 function GM_getValue(aKey, aDefault) |
135 function GM_getValue(aKey, aDefault) {{ |
136 var val = localStorage.getItem("{0}" + aKey) |
136 var val = localStorage.getItem("{0}" + aKey) |
137 if (null === val && 'undefined' != typeof aDefault) return aDefault; |
137 if (null === val && 'undefined' != typeof aDefault) return aDefault; |
138 return val; |
138 return val; |
139 }} |
139 }} |
140 |
140 |