New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation shouldn't fail when there is no parsable metadata #1562
Comments
This is what I got from the error console in my new fresh profile when I tried to load the greasemonkey script from File->Open File menu: Timestamp: 06/04/2012 11:52:44 PM |
What OS? Which file? What is its full path? All the rest of the details requested at http://wiki.greasespot.net/Greasemonkey_Manual:Getting_Help#What_to_Say ? |
OS: Kubuntu Linux 12.04 Hint: I discovered that I can install other scripts like e.g. |
It's because the script is not UTF-8 and has special chars in it. |
I can't install https://userscripts.org/scripts/version/113690/378080.user.js either from a file or that URL, I get the 'script is null' error mentioned. Haven't diagnosed why yet. |
My comment is related to first question. It seems last GM versions was "more tolerant" when the charset of the script file or text was not UTF-8. Now the script file MUST be UTF-8, I faced this because my scripts have latin chars sometimes... For me it worked, just convert the charset of the file. |
Yes, a bit of the character set handling WRT downloading scripts changed recently. I thought it already forced UTF-8 somewhere, that might not have been true. If you can give me confirmation of a particular script that won't install in 0.9.20 but does in an earlier version that will make improving things easier. |
Actually the reason the scripts on https://userscripts.org/users/405846/scripts all throw this error is because |
Good catch, that should probably be return script, not return null. |
@sergioabreu: |
Kbntk other point you should check is if you use any setTimeout in your scripts. |
That was broken in 0.9.19, but that breaking change was reverted, in .20 everything works as it always used to. |
The issue Ventero pointed was the reason the scripts didn't work. |
Changed the title to reflect the issue as it has now been described. |
shouldn't fail or would fail ? Did you meand "shouldn't HAPPEN" ? |
I can't install greasemonkey user scripts from file on version 0.9.20.
The scripts could be installed in previous versions.
Do you have the same problem?
If more information is needed, I will put it here.
The text was updated successfully, but these errors were encountered: