Difference @exclude vs. @exclude-match in user-scripts?

26 views
Skip to first unread message

Claudia

unread,
Apr 22, 2024, 2:17:48 AMApr 22
to greasemonkey-users
I found two ways to exclude some URLs (with wildcards)in user-scripts:

// @exclude-match   https://*.foobar.com/dummy/*

and

// @exclude   https://*.foobar.com/dummy/*

What is the difference?
Can I use both in GM scripts?

Anthony Lieuallen

unread,
May 1, 2024, 8:38:46 AMMay 1
to greasemon...@googlegroups.com
On Mon, Apr 22, 2024 at 2:17 AM Claudia <cls...@gmail.com> wrote:
Can I use both in GM scripts?

Sure you can use both, but `@exclude-match` isn't supported so it won't do anything.  https://wiki.greasespot.net/Metadata_Block

Claudia

unread,
May 6, 2024, 4:13:22 AMMay 6
to greasemonkey-users
Not supported? Hmm, thats surprising.
I found a couple of comments for user-scripts (in general) that @exclude-match and @match ar better than @exclude and @include
And in future @exclude and @include will be deprecated.

Are there any plans to implement @exclude-match and @match for Greasemonkey/Violentmonkey?
Reply all
Reply to author
Forward
0 new messages