Discussions » Greasy Fork Feedback

How to convert one of my userscript to the UserCSS format of greasyfork?

§
Posted: 23-12-2020

I want convert one of my userscript to the UserCSS format of greasyfork.
How to do that?
I want keep the same place (not create a new one)

The userscript i want to convert:
Userstyles / GreasyFork Enhancer Dark-Grey + Comments Numbering

I want update it with the CSS of my usertyle:
Userstyles / Greasy Fork Enhancer Dark-Grey v.189

§
Posted: 24-12-2020

That's mean that users which use the old one are updated to the new one?
And install of the new one start from the old one?

When i delete the old one, i have these choices:

1 - They will keep it as it is.
2 - They will be updated to a blank script.
This is suitable when the script has a negative effect on the sites it runs on.

(Optional) Choose another script that replaces this script.
Users will be updated to and redirected to this script.
Enter the replacement script's URL:


What i need to check between 1 or 2 if i want they are updated to the new one that i have specified in the form?

"updated to a blank script" or "keep it as it is" when i wanted too a check something like "updated to the new one" :
That's not very clear and if i don't check one of them, that's wrong.


Another thing:
About version, i wanted start the version at my actual version of the usertyle.

On the new one, it try in first:
@version 189.0

But when i test the stylus install, it fail with this error message:
"Stylus a échoué à parser le usercss :
Numéro de version invalide. La valeur ne correspond pas au motif SemVer : 189.0"


So, i change to :
@version 1.189.0
An that's good, Stylus can install it...

Wath's is wrong with @version 189.0 ?

My new userscript / UserCSS:
Userstyles / Greasy Fork Enhancer Dark-Grey - UserCSS (userstyle/script)

§
Posted: 27-12-2020
- That's mean that users which use the old one are updated to the new one?

Yes.
Doesn't matter if you provide a replacement.

It seems not :
I have installed the old one, provide the link to the new one when i make the deletion
and choose the first option (1 - They will keep it as it is.)....

But when i update, i have just the same old userscript.

When i ask:

And install of the new one start from the old one?

i speak about the stat of number of install .


I use greasmonkey v.3.17 and waterfox classic

§
Posted: 05-01-2021

Answer of Stylus Discord about "Semver":

189.0 is an invalid Semver pattern, it requires at least 3 numbers MAJOR.MINOR.PATCH as stated in https://semver.org/
Semantic Versioning 2.0.0 - Semantic Versioning spec and website

Changing it to 0.189.0 would be more reasonable due to not having a 'MAJOR' it will standard assumes to be '0'.

Post reply

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