I've always wondered how they do it as well.

Second problem - if they remove it from localstorage they still need to hold them somewhere. So are they moved to a simple variable then? It's just as accessible as localStorage. Maybe it's randomized every load?

> I've always wondered how they do it as well.

See https://news.ycombinator.com/item?id=48574402

> So are they moved to a simple variable then?

Yup, it has to exist somewhere.