Running Different Scripts on different tabs

9 views
Skip to first unread message

l2aym0nd

unread,
Nov 25, 2009, 4:37:46 AM11/25/09
to greasemonkey-users
hi,

i was wondering if it is possible to run same scripts on different
tabs but configure differently for the scripts on each tab. For
example:

Tab A: run script A ask to perform action 1
Tab B: run script A ask to perform action 2
Tab C: run script A ask to perform action 3

Currently if i run the same scripts on the different tabs and change
one action on either one, all 3 will change together.

If anyone out there knows how please post instructions. Thanks heaps!

/cheers

l2aym0nd

unread,
Nov 25, 2009, 4:39:25 AM11/25/09
to greasemonkey-users

RodMcguire

unread,
Nov 25, 2009, 7:04:25 AM11/25/09
to greasemonkey-users

Matt Sargent

unread,
Nov 25, 2009, 1:54:28 PM11/25/09
to greasemon...@googlegroups.com
If they're running on different sites, or in some other way the URL is
different on each tab, you can simply detect that by examining the URL
and directing the code to perform accordingly.
> --
>
> You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
> To post to this group, send email to greasemon...@googlegroups.com.
> To unsubscribe from this group, send email to greasemonkey-us...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
>
>
>
>
>


Reply all
Reply to author
Forward
0 new messages