This script works and uses localStorage.

Is it wise to use localStorage over GM.getValue/GM.setValue?

I guess a given website can read the localStorage value set by a userscript.

Can websites read values of GM.getValue?