Diskusie » Spätná väzba ku Greasy Fork

Question about Greasy Fork rules (minification and packages)

Am I allowed to use frameworks and libraries in my script?

My React userscript is already 11,000 lines of code without any components, and minification is not allowed. Given its size, can I minify it, or am I permitted to post such a large script as it is?

Thanks.

I believe the script is under 500KB (the limit is 2MB, as far as I know). Does that make it acceptable?

JasonBarnabeZablokovaný
§
Pridaný: 20.01.2025

https://greasyfork.org/en/help/code-rules

Relevant sections:

  • Scripts are limited to a size of 2 MB. Scripts may not be minified to fit under this limit. If your script is nearing this limit, you may want to consider:
    • Moving non-code data such as data URIs or JSON outside of the script.
    • Loading libraries using @require or with webpack's externals option.
  • Libraries that a script uses should be @require-d, unless there's a valid technical reason not to do so. In the case that a library is included inline, it must include information as to the source of the library (e.g. a comment indicating URL and/or name and version).

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.