Error console filled with > GM_MenuCommander.attach...

3 views
Skip to first unread message

Brent C

unread,
Nov 6, 2007, 10:13:22 PM11/6/07
to greasemonkey-users
Hello,

Everytime I load a page, or switch tabs the following gets added to my
Error Console:

< GM_MenuCommander.attach
> GM_MenuCommander.attach
< GM_MenuCommander.detach
* this.menuPopup2: [object XULElement]
* this.menuPopup: [object XULElement]
> GM_MenuCommander.detach

This is beyond annoying as I'm trying to debug some other javascript
code at the moment.

Any ideas?

(Using Firefox/2.0.0.9 with GM 0.7.20070607.0 (Windows XP))

-Brent

Patrick Wiseman

unread,
Nov 6, 2007, 10:16:46 PM11/6/07
to greasemon...@googlegroups.com

Disable all the GM scripts running on that page.

Patrick

Brent C

unread,
Nov 6, 2007, 10:19:31 PM11/6/07
to greasemonkey-users
On Nov 6, 10:16 pm, "Patrick Wiseman" <pwise...@gmail.com> wrote:

It happens on every page, even with no scripts enabled, and with GM in
disabled mode.

-Brent


Patrick Wiseman

unread,
Nov 6, 2007, 10:53:53 PM11/6/07
to greasemon...@googlegroups.com

Apologies for asking, but you have cleared the Error Console?
GM_messages appearing when GM is disabled seems unlikely.

Patrick

Brent C

unread,
Nov 6, 2007, 11:07:22 PM11/6/07
to greasemonkey-users

On Nov 6, 10:53 pm, "Patrick Wiseman" <pwise...@gmail.com> wrote:

Yes, I have cleared the Error Console after disabling Greasemonkey.
This is also how I identified that it's the exact the 6 messages
occuring each time I switch tabs or load a new page.

The messages all seem to come from internal GS calls to GM_log:
See:
http://greasemonkey.devjavu.com/browser/trunk/src/content/menucommander.js?rev=205#L93
http://greasemonkey.devjavu.com/browser/trunk/src/content/menucommander.js?rev=205#L111
http://greasemonkey.devjavu.com/browser/trunk/src/content/menucommander.js?rev=205#L98

-Brent

BD

unread,
Nov 7, 2007, 4:00:29 AM11/7/07
to greasemon...@googlegroups.com
Parts of Gm always execute, even when it is "disabled". Unless you use the Firefox "disable this extension" feature, which requires a browser reboot and might be a severe pain. I suggest you go into the code and remove the offending error message code. It's pretty easy to do. You should be able to find the code, but if you can't, I can suggest where to look if you need me to remember where it is. (what is your OS?)

Anthony Lieuallen

unread,
Nov 7, 2007, 9:46:55 AM11/7/07
to greasemon...@googlegroups.com
On 11/6/2007 10:13 PM, Brent C wrote:
> Everytime I load a page, or switch tabs the following gets added to my
> Error Console:
>
> < GM_MenuCommander.attach
> > GM_MenuCommander.attach
> ...

It would appear, for some unknown reason, that you have the Greasemonkey
"logChrome" preference set to true. Open about:config and find the
"greasemonkey.logChrome" preference. If it's there and set to true,
that's why. Set it to false. If it's not, there must be a bug, somewhere.

BIG P.S. to all the other people who participated in this thread:
Please learn about appropriate netiquette (i.e.
http://earlydues.usanethosting.com/ieel/netiquette.htm#quote ). Don't
quote the entire 40 line message to append 2 lines of commentary. Cut
out the pieces you aren't actually replying to. Thanks.

Brent C

unread,
Nov 7, 2007, 4:28:58 PM11/7/07
to greasemonkey-users
On Nov 7, 9:46 am, Anthony Lieuallen <arant...@gmail.com> wrote:
> It would appear, for some unknown reason, that you have the Greasemonkey
> "logChrome" preference set to true. Open about:config and find the
> "greasemonkey.logChrome" preference. If it's there and set to true,
> that's why. Set it to false. If it's not, there must be a bug, somewhere.
>
Anthony,

The setting was not in about:config, and even after adding it manually
(as a boolean set to false), (even restarting firefox to be sure), the
problem persists. So indeed, there must be a bug "somewhere". :)

Brent C

unread,
Nov 7, 2007, 4:34:32 PM11/7/07
to greasemonkey-users

Of course, I could disable GM outright, and even uninstall it, but
then I'd loose all my GM scripts, which would be quite sad (having
written several myself, and even released a few of the more useful-to-
the-general-public ones: http://userscripts.org/users/627/scripts).

And yes, I could go into the extensions folder, extract the jar,
comment out the lines in menucommander.js. Of course, the next time
extension is updated, I'd have to repeat the whole process. This
doesn't really get to the root of the problem however, andI'd prefer
to see the issue tackled at the source (pardon the pun). I guess I'll
take this to the GM issue tracker.

-Brent

Brent C

unread,
Nov 7, 2007, 4:55:34 PM11/7/07
to greasemonkey-users
Hi all,

I've created a bug on this issue:
http://greasemonkey.devjavu.com/ticket/55

-Brent

BD

unread,
Nov 7, 2007, 10:24:16 PM11/7/07
to greasemon...@googlegroups.com
Last I checked there is no .JAR file, it is all source. So it's pretty easy. And you would have to do it every time, but the code you have in there is probably left over debugging code that will be removed next time anyway.

Reply all
Reply to author
Forward
0 new messages