Skip to content

Strange issue regarding code sync - allows scripts over the limit to be synced #1715

Closed
@qsniyg

Description

@qsniyg

I set up https://openuserjs.org/scripts/qsniyg/Image_Max_URL to have code sync with Github, and though I initially set it to sync from userscript_min.user.js (I created the script to import from Github, and selected that file), it appears to be syncing from userscript.user.js instead.

This isn't an issue for me, I only created userscript_min.user.js in order to fit within the 1MB limit (and even with pretty much the maximum compression without resorting to an obfuscation-like technique, it's still ~860KB), having it sync from an unminified version is definitely preferable. However, I believe this would theoretically allow any script to violate the site's limits (including, accidentally, my own), as well as the fact that it syncs from the wrong file, which I guess on a repository that contains multiple different userscripts, this could lead to issues.

When downloading the userscript now, it's ~3.3MB, which is well above the limit:

$ curl 'https://openuserjs.org/install/qsniyg/Image_Max_URL.user.js' | wc -c
3373819

Metadata

Metadata

Assignees

No one assigned

    Labels

    CODESome other Code related issue and it should clearly describe what it is affecting in a comment.bugYou've guessed it... this means a bug is reported.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions