[Greasemonkey] This script is not properly formatted!??
Jeremy Dunck
jdunck at gmail.com
Sun Feb 5 10:39:54 EST 2006
On 2/5/06, Carlos Zuniga <carlos.zun at gmail.com> wrote:
> Hi, when i try to add mi script to userscripts.org it tells me that
> "This script is not properly formatted!"
> What could be wrong?, the script works fine. You can find it here:
> http://www.debianarequipa.org/file/tweak-sms-sender.user.js
>
> Can somebody give me a clue?
>
> Thanks for your help, bye
Carlos,
When I saved that script locally, it uploaded fine.
It turns out you're serving the user script as
"application/x-javascript", while a successful response uses
"text/javascript".
I think userscripts.org should be tweaked to take any of the
commonly used MIME's for js, but for now, this tweak will get your
script up there. You can upload from your local computer (thus not
using a MIME at all), or change your server to send text/javascript.
And, you're not alone: http://annevankesteren.nl/2005/02/javascript-mime-type
More information about the Greasemonkey
mailing list