Hi,

I have a GM script at http://git.fedorahosted.org/git/?p=triage.git;a=blob_plain;f=greasemonkey/bugzillaBugTriage.user.js;hb=HEAD which I would like to rewrite into proper FF extension (mainly to get updates for the extension, and make it easier for my users).

I have tried GM script compiler at http://arantius.com/misc/greasemonkey/script-compiler, but the result (http://mcepl.fedorapeople.org/tmp/bugzillamodificationsforbugtriag.xpi) doesn't work. Aside from zillion warnings in Javascript console (mainly for code added by the script compiler, not my code), I get also error message "Error: document.getElementById("bz_assignee_edit_container") is null", which just cannot be correct (take a look at the source code of any bug report, e.g., https://bugzilla.redhat.com/show_bug.cgi?id=487910 and you will find it there).

I have read http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/ and materials on https://developer.mozilla.org/en, but I still didn't get the "aha" moment, where I would grok it. Also, it seems to me that most of the tutorials are focused on generating GUI dialogs and much less on manipulating DOM of the page. Also, is there some better way how to emulate @include than putting big

if (BugzillaRE.test(window.href.location)) {

}

in the top of the script?

Any thoughts on what could be the problem? Any resources on converting GM scripts into FF extensions?

Thanks in advance for any help,

Matěj Cepl

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to