nexushoratio / userscripts

Random userscripts for browsers.
GNU General Public License v3.0
2 stars 0 forks source link

On/after 2023-11-16 enable `GM.setValue` and `GM.getValue` functions. #170

Closed nexushoratio closed 12 months ago

nexushoratio commented 1 year ago

NOTE: Do not enable before 2023-11-16.

See the original Greasemonkey documentation at setValue and getValue.

These values can generally be viewed and modified using the userscript manager used to install the script.

Lines in the header will look like this:

// @grant GM.getValue
// @grant GM.setValue
nexushoratio commented 1 year ago

Something to test against various userscript managers: addValueChangeListener

Looks like TM introduced this; not sure how widespread it is.

We need something like that to keep two instances in sync. Might also fire when user edits using userscript manager UI.