Fairly trivial to just keep a list of domains you have visited, and drop out of the script if you get a match. You could use a GM value or local storage to contain the list.

On 5/14/2011 8:53 AM, Nico Gerwien wrote:
Hi,

i wrote a small HelloWorld Script with Greasymonkey and did something
like this:
...
alert(jQuery);
alert(jQuery().jquery);

So the problem is Greasemonkey executes my userscript on some sites
more than once. In this case i get the alert messages many times.

I would like to know if there is a way to ensure that a userscript is
only executed once per website. Or maybe prevent the script to execute
on embedded sites.

Greetz.



--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to