On 9/29/2011 12:31 PM, Robert wrote:
Hi Matt,
go the GM Prefs mega-script route.
What's this? I could not find anything about it...
Regards,
Robert
I was referring to what would normally be a set of individual scripts,
each working on an individual web page, except that they have to share
data via GM Prefs. Since a GM Pref is specific to a one script, you have
to combine the small scripts into one large script, which has @includes
for all the web pages, and examine the document location (or use some
other method) to determine which section of code to run.
If all the web pages are within the same domain, you can skip having to
do that, by using local storage. I haven't tried it, but I think you can
set up a listener that gets triggered whenever the local storage is
changed, even if the change occurred in a different tab or window.
--
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.