greasyfork-org / greasyfork

An online repository of user scripts.
https://greasyfork.org
GNU General Public License v3.0
1.43k stars 431 forks source link

allow combined assets from jsdelivr #1098

Closed gera2ld closed 1 year ago

gera2ld commented 1 year ago

jsdelivr supports combined assets so the following are identical:

// @require https://cdn.jsdelivr.net/npm/a
// @require https://cdn.jsdelivr.net/npm/b
// @require https://cdn.jsdelivr.net/gh/c
// @require https://cdn.jsdelivr.net/combine/npm/a,npm/b,gh/c

For now only the former is allowed by greasyfork, I hope the combined pattern can also be allowed. The benefit is that we can easily reuse the same group of dependencies as the same one URL in multiple scripts rather than maintain a lot of @requires.

gera2ld commented 1 year ago

Never mind, it turns out to be the semver version that is not allowed. It's still weird because there is no such limit to unpkg.com. (ref)