Greasemonkey text editor

125 views
Skip to first unread message

filmafic06

unread,
Feb 23, 2008, 12:25:43 AM2/23/08
to greasemonkey-users
My Greasemonkey let me edit with a text editor for awhile, then broke.
I have reset the value of the "greasemonkey.editor" option in
about:config several times, then accessed my text editor through the
dialog box that popped up when I tried to edit a script. GM lets me
select the text editor, but won't open the script. I tried manually
changing the value in about:config also. I am using Firefox 3 beta on
Mac OS X 10.4, but the problem existed before I updated to Firefox 3
beta. Suggestions? If none, then I hope the developer will take note
for future versions of GM.

Patrick Wiseman

unread,
Feb 23, 2008, 8:55:03 AM2/23/08
to greasemon...@googlegroups.com
On Sat, Feb 23, 2008 at 12:25 AM, filmafic06 <filma...@gmail.com> wrote:
>
> My Greasemonkey let me edit with a text editor for awhile, then broke.
> I have reset the value of the "greasemonkey.editor" option in
> about:config several times, then accessed my text editor through the
> dialog box that popped up when I tried to edit a script. GM lets me
> select the text editor, but won't open the script. I tried manually
> changing the value in about:config also. I am using Firefox 3 beta on
> Mac OS X 10.4, but the problem existed before I updated to Firefox 3
> beta. Suggestions?

Is there any chance you're trying to edit as a user different from the
one who installed the scripts? At least on Linux (and your Mac is
Un*x underneath) only the user who owns it has any access to the
.mozilla directory wherein the GM scripts reside (a few directories
down).

pw

BD

unread,
Feb 23, 2008, 3:45:16 PM2/23/08
to greasemon...@googlegroups.com
Greasemonkey should have its own built-in text editor.
Please have that installed and working in the next few days.
Thank you.

p.s. With syntax highlighting, please.

Matthias Bauer

unread,
Feb 23, 2008, 10:57:51 PM2/23/08
to greasemon...@googlegroups.com

There are JavaScript editors with syntax highlighting.

Try http://codepress.org/


-M

BD

unread,
Feb 24, 2008, 6:45:17 AM2/24/08
to greasemon...@googlegroups.com
I was "being funny" (especially with the timeline suggestion), but it really is a possible thing to do if someone wanted to take it on as a sub-project. As long as it worked well, and didn't take up megabytes of space, it would actually be a cool thing. (? +/-) You could always make it an optional extra I suppose. A Gm extension extension, if you will.

Hans Schmucker

unread,
Feb 24, 2008, 11:26:45 AM2/24/08
to greasemon...@googlegroups.com
I guess your font settings just put people into "aggressive mode"... huge fonts are usually reserved for trolls and spam :)

Athena

unread,
Feb 24, 2008, 11:52:43 AM2/24/08
to greasemon...@googlegroups.com
I have been unable to open the text editor from the Greasemonkey
dialog box as well, ever since I switched to the beta. I'm using
Firefox 3.0b3 on Mac OS X 10.4 (However, I am able to open my text
editor from Firefox 2). When I click the edit button, I get this
message in the console:

Failed to launch editor: [Exception... "Could not convert JavaScript
argument arg 0 [nsIMIMEInfo.preferredApplicationHandler]" nsresult:
"0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
chrome://greasemonkey/content/utils.js :: launchApplicationWithDoc ::
line 147" data: no]

I have tried resetting my text editor in about:config, just in case it
would make a difference, with no luck. Hope this information helps!

Hans Schmucker

unread,
Feb 24, 2008, 12:09:06 PM2/24/08
to greasemon...@googlegroups.com
Hmm... the code mentions https://bugzilla.mozilla.org/show_bug.cgi?id=411819 which says that it doesn't work on OSX because of application bundles... no idea really, just saying that it might be worth to check that bug again

BD

unread,
Feb 24, 2008, 1:12:04 PM2/24/08
to greasemon...@googlegroups.com
This "large font problem" has been brought up before, and it is not my problem, it is yours.
Everything looks basically the same on my system. So you need to set up yours correctly.

Patrick Wiseman

unread,
Feb 24, 2008, 1:24:51 PM2/24/08
to greasemon...@googlegroups.com
So how do you explain that font tag around your text, with size="+1"?  I read this group's posts in Gmail, and yours are the only ones with the large font.  So, no, the problem is yours.

pw

Saravana

unread,
Feb 25, 2008, 10:23:06 PM2/25/08
to greasemon...@googlegroups.com
We used to have font size issue for emails sent by Bill. He never
acknowledged the issue and abused other members of the group[1]. I
believe Aaron banned sending HTML emails to the greasemonkey group(at
that time it was hosted in mozdev.org).

If everyone agrees, then Aaron should ban the HTML emails in
Greasemonkey list(user and dev) in Google groups.

Somebody even wrote a greasemonkey script called deBillIfier to remove
+1 font tag[2]. Unfortunately that script doesn't work anymore.

[1] http://thread.gmane.org/gmane.comp.mozilla.firefox.greasemonkey/5106/focus=5116
[2] http://www.mozdev.org/pipermail/greasemonkey/2005-August/005390.html

Patrick Wiseman

unread,
Feb 25, 2008, 10:36:09 PM2/25/08
to greasemon...@googlegroups.com
Oh, I see. As a recent joiner of this group, I was unaware of the
history. Thanks for filling me in.

pw

BD

unread,
Feb 26, 2008, 12:58:36 AM2/26/08
to greasemon...@googlegroups.com
You have a nice selective memory.

It was several other people who were being abusive toward me. People (and you were apparently one of them) just didn't like me pointing out a truth that they chose to not deal with.

The bottom line is, if you have a problem with whatever e-mail program it is that you use showing +1 font size as too large, then that is YOUR problem, not mine. Even +2 should not be a problem.

Learn to use your system and programs and set them up correctly instead of blaming other people for your incompetence and whatever other problems you have.

Matt Labrum

unread,
Feb 26, 2008, 5:56:51 AM2/26/08
to greasemon...@googlegroups.com
....or you could just learn to use YOUR mail client better and adjust the font size on YOUR mail client, instead of forcing everyone to have your crazy formating

BD

unread,
Feb 26, 2008, 6:23:28 AM2/26/08
to greasemon...@googlegroups.com
Which is what I have done. I have no problems at all with any e-mail I get from anyone.
If you want to use your crappy gmail web client then live with it and all of its inadequacies if it's not your incompetence in its use that is causing you problems.
So go be an idiot and an asshole somewhere else.

Brandan E. Lloyd

unread,
Feb 26, 2008, 9:54:15 PM2/26/08
to greasemon...@googlegroups.com
You can add the following rule to your userContent.css that fixes the font problem:
font[size] {font-size: 100% !important}

You could also restrict it to just gmail using the @-moz-document syntax as well:
@-moz-document
    domain(mail.google.com)
{
  font[size] {font-size: 100% !important}
}

Brandan

Johan Sundström

unread,
Feb 29, 2008, 4:26:58 PM2/29/08
to greasemon...@googlegroups.com
> Matt Labrum wrote:
>> ....or you could just learn to use YOUR mail client better and adjust the
>> font size on YOUR mail client, instead of forcing everyone to have your
>> crazy formating
>
> Which is what I have done. I have no problems at all with any e-mail I get
> from anyone.

He meant as in the first, not second, part of Postel's law - "Be
conservative in what you do; be liberal in what you accept from
others".

Anyway, I just rewrote the GMail deBill:ifier GM script for the new
GMail version. They've made it quite messy to work with from user
scripts, but http://userscripts.org/scripts/show/23408 eventually got
fairly clean. Works in Firefox with Greasemonkey, or
Safari/WebKit/MailPlane with GreaseKit.

--
/ Johan Sundström, http://ecmanaut.blogspot.com/

Reply all
Reply to author
Forward
0 new messages