konami-command icon indicating copy to clipboard operation
konami-command copied to clipboard

Store user settings

Open jesus2099 opened this issue 10 years ago • 5 comments

Impossible with localStorage which is distinct for HTTP/HTTPS and for main/beta as well. Now let’s find out if domain cookies are not only shared between main and beta but also between HTTP and HTTPS…

jesus2099 avatar Jan 12 '16 11:01 jesus2099

As this script is called from all the internet, there is no way (localStorage nor cookie) to store its setting.

jesus2099 avatar Jul 06 '16 05:07 jesus2099

This is the exact purpose of Greasemonkey Values API (GM_getValue, GM_setValue, ...). :sparkles: For example, GM_config uses it as default storage and fallbacks to localStorage if it is not available.

yvanzo avatar Jul 08 '16 15:07 yvanzo

GM_setValue is indeed a solution for storing cross domain script settings (#333, #354)! Now how would I make the GUI, this is another problem… Putting a button on every sites would be terrible.

jesus2099 avatar Jan 04 '18 15:01 jesus2099

I experimented the userscript engine (Violentmonley) contextual / right-click menu and it was not bad. But a little bit hidden away from the average user.

jesus2099 avatar Oct 28 '22 09:10 jesus2099