How to execute script once OR enable/disable script programaticly Is it possible to run a TamperMonkey Script only once ?
According to me TamperMonkey Script are always executed when the url location does match so I was wondering to know if there was a way to execute a script only once and then to disable it for exemple. So when I refresh the page the script will not be executed again.
Is it possible ?

Sure.
You could use GM_setValue and GM_getValue to save the URL you run on, and if the URL had already been saved, not re-run the script.

If you want to share info between scripts, you can use localStorage, but:

*

*Local storage is not eternal, meaning it can get deleted after a long time

*Scripts from the webpage itself can read the same local storage meaning they can compromise or detect your script (theoretically)

*Also, just like with GM_setValue, remember that you don't know in which order the scripts will access the value.