Discussions » Développement

@required directive breaks down userscript when version is specified as parameter

§
Posté le: 2014-09-24

@required directive breaks down userscript when version is specified as parameter

Library scripts included with the provided from Greasy Fork // @require https://greasyfork.org/scripts/example/code/example.js?version= directive seems to break down user script because of the version specified as a parameter. When the url points to the js only, everything seems to be fine. Am I the only one with this problem?

§
Posté le: 2014-09-25

In my case I tried adding this (// @require https://greasyfork.org/scripts/5279-greasemonkey-supervalues/code/GreaseMonkey_SuperValues.js?version=18765) library, that I uploaded myself, but did not wrote. The script showed no error, nor greasemonkey complained, it was like you made a syntax error or something. Removing the ?version=18765 parameter miraculously fixed this issue and imported the library successfully. You're welcome to try and reproduce that case and I'll be happy to see the results.

§
Posté le: 2014-09-25

What about with it?

§
Posté le: 2014-10-06

It must have been completely my fault. The problem disappeared as miraculously as it has appeared. I cannot even seem to reproduce it anymore. If any stumbles upon similar situations, try deleting the downloaded version in the profile and let greasemonkey re-download it again. I am sorry for your wasted time.

Poster une réponse

Connectez-vous pour poster une réponse.