A Chrome-modified script I'm looking at uses `localStorage.setItem(name, value)` and `localStorage.getItem(name)` to re-implement `GM_setValue` and `GM_getValue`. The author stores and recovers type info as the first character of the data.