[Greasemonkey] Can greasemonkey set user prefs?
Dave Land
land at aol.com
Sun Aug 27 01:37:37 EDT 2006
On Aug 26, 2006, at 7:30 AM, Vikas Pandey wrote:
> On 8/26/2006 01:59 PM India Time, _Vikas Pandey_ wrote:
>
>> On 8/26/2006 02:43 AM India Time, _Jeremy Dunck_ wrote:
>>> On 8/25/06, Vikas Pandey <vickyvirgo2k at gmail.com> wrote:
>>>> Which compiler are you using?
>>>>
>>> In case he doesn't respond, this is the working one last time I
>>> checked:
>>> http://www.arantius.com/misc/greasemonkey/script-compiler.php
>> it is very helpful.
>
> I created an xpi file of one of my script using that site.
>
> However, when I went to load it at
> https://addons.mozilla.org/developers/additem.php?type=E
>
> it threw error that "Errors were encountered during install.rdf
> parsing...
> Aborting..."
>
> Then, read at http://developer.mozilla.org/en/docs/
> Building_an_Extension
> that developing an extension for firefox requires many more steps,
> more
> files in .xpi, and more content in those files.
>
> hence, where and how do I use the xpi created by the above compiler?
>
> Is there any any site that would create an xpi file from my script
> that
> will be directly loadable at mozilla addons for distribution?
Sounds like the much-beloved compiler doesn't generate XPIs that meet
Mozilla.org's stringent requirements...
Being the perverse individual I am, I took a script ("Resize Textarea
0.2gm") that I had originally converted *from* an extension ("Resizeable
Textarea 0.1a") and tried converting it *back* into an extension
using the
script-compiler. I saved the resulting XPI to disk, then pointed my
browser
at the XPI file, which installed it as it would have any other.
After restarting the browser, I visited pages that had textareas (and
text
input boxes -- I extended the script to cover both) and it worked just
fine. I'm not using anything in my script that actually /required/
that it
be compiled into an extension, I just wanted to satisfy myself that the
compiler does generate working XPIs.
I then tried to reproduce Vikas's problems uploading to
addons.mozilla.org,
and immediately hit the one about the target browser version number.
Maybe the XPI compiler could use some more input fields (resizable,
thanks
to me :-)) for target version numbers and so forth.
Then again, maybe there are other GM-to-XPI compilers out there?
Dave
More information about the Greasemonkey
mailing list