I have a simple Javascript code I want to run once per browser session, in a given website.
To clarify:
- I open a browser session (window), say, Firefox.
- I go to a certain webpage matched in Greasemonkey (say, google.com).
- My script runs.
- I fully refresh the wepbage (CTRL+F5), and the script no longer runs because it runs only once per session.
How can this be done? I mean, how can a simple script consisted only of one function, could be limited to run only once in a browser session, in a particular website matched in Greasemonkey?