Discussions » Greasy Fork Feedback

Fail to require Library script from this site.

§
Posted: 2014-03-28
Edited: 2014-03-28

Fail to require Library script from this site.

The problem is, Grease Monkey [1.15; Firefox 28] OVERWRITES the script file with the library JS downloaded, because they all have the same name: code.user.js

My suggestion is, maybe for the library files, have an alternative url such as //greasyfork.org/lib/lib.<ID>.js ?
Thanks :3

§
Posted: 2014-03-28

Thanks :3

§
Posted: 2014-04-01

I created these scripts to test this:

https://greasyfork.org/scripts/240
https://greasyfork.org/scripts/241

#1 @requires a script that alerts "Require #1", #2 @requires a script that alerts "Require #2". Both run on google.com. Both @requires have the same file name, but a different path.

This seems to work fine for me...

§
Posted: 2014-04-02

Sorry for the late reply...
It did happen to me, and it's weird to reproduce the bug..
1. Install the script "https://greasyfork.org/scripts/103"
2. Add // @require https://greasyfork.org/scripts/216/code.user.js?06
3. Visit any site matches the rule.
4. Script replaced by the lib file.

I don't know what's going on :<
Maybe I should try remove the directory it completely and they paste the script back... ? Because the testing script did workout and the file auto renamed to code.user-0.js and so.
Thanks for the reply anyway :>

§
Posted: 2014-04-02
Edited: 2014-04-02
and it's weird to reproduce the bug..

Yeah, I used the same method (editing a script and add @require).

I closed the issue, for now.

§
Posted: 2014-04-02

Weird. Looks like a Greasemonkey bug rather than an intended behaviour. Filed https://github.com/greasemonkey/greasemonkey/issues/1906

§
Posted: 2014-04-03

Thanks ^^

Post reply

Sign in to post a reply.