Discussions » Greasy Fork Feedback

Question about Greasy Fork rules (minification and packages)

§
Posted: 19-01-2025

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.

§
Posted: 19-01-2025

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

§
Posted: 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).

Post reply

تسجيل الدخول إلى مرحلة ما بعد الرد.