Which script variant should get priority? The one included in
Lifehacker's Better Gmail? Mihai's original? Yours? This is
complicated...
I also took a stab at Gmail Colored Labels, but couldn't seem to
locate the particular div elements that hosted the place where labels
appear in front of messages.
I'm willing to help - or at least document how to help - if someone is
willing to figure out the programming.
There are a bunch listed at http://groups.google.com/group/gmail-power-users/web/gmail-macro-version-info
On Nov 4, 7:09 pm, "caveat...@nospam.gmail.com" <caveat...@gmail.com>
wrote:
I take it that google does not document interfacing with gmail -- do I
just check out the pagesource and tinker through it? Or is there a
more intelligent way of doing this?
On Nov 5, 3:48 pm, Doug Harris <dhar...@gmail.com> wrote:
> Which version are you working from?
>
> There are a bunch lis169.254.9.22ted athttp://groups.google.com/group/gmail-power-users/web/gmail-macro-vers...
If I ever get the new version I'd like to add my code that makes the
keys configurable, and add an interface to change those mappings as
well.
On Nov 6, 10:22 am, Brent Nef <brent....@gmail.com> wrote:
> Mihai put out a new Gmail Macros script for gmail 2.0, I'll update the
> page...http://groups.google.com/group/gmail-power-users/web/gmail-macro-vers...
Mihai put out a new Gmail Macros script for gmail 2.0, I'll update the
page... http://groups.google.com/group/gmail-power-users/web/gmail-macro-version-info
If I ever get the new version I'd like to add my code that makes the
keys configurable, and add an interface to change those mappings as
well.
http://www.math.rochester.edu/people/faculty/cmlr/gmail-new-macros.Mihai.CM.user.js
I modified a few of Mihai's bindings,
L unlabel
r mark as read
R mark as unread
I also put in some code so that people can rebind keys. That is, for
small letters, use the numbers such as '71' for g. For capital
letters, use put 's' at the end, so '71s' is G. The code for the 's'
is on line 252, where I added
k += (event.shiftKey) ? "s" : "";
Also, line 23 has
var MARK_AS_UNREAD_ACTION = "2";
I guess all actions have numbers. One could figure them out by trial
and error, if nothing else. Lines 81-87 have the functions for read
and unread.
This file doesn't include Brent's other innovations. It doesn't have
a help box, but that should be easy to add by copying from the
previous script. Knowing the numbers for the other events would be
nice.
Carl
Too bad Gmail's system doesn't make it easier to configure these
keyboard shortcuts.
Carl
Carl
If he says no or doesn't answer, I think we'll just have to get Brent
Nef back here to go over the code and reinvent his wheel... :)
On Nov 6, 1:55 pm, "Mohamad Alhomsi" <peacebeupon...@gmail.com> wrote:
> please I really need this shortcut key. pleeeeeeeeeeeeeeeese.
> many times there will be that email that you want to delete from the
> conversation
>
> "delete this message"
>
> --
> Mohamad Alhomsi
> 7066277577
http://code.google.com/p/gmail-greasemonkey/wiki/GmailGreasemonkey10API
I got updated to the new gmail and I've added a bunch of the old
mappings. I'm kind of embarrassed to put this out because it's so
rough and I'm probably going to get rid of most of my changes.
However the primary reason I'm putting it out there now is because I
can't seem to "override" the events. I found this because when you
try to do 'X'+a (select all) or any of these, gmail fires the 'x'
event handler anyway. event.stopPropagation() doesn't work, nor does
changing the capture flag when you create the event handler. I would
appreciate any ideas on the subject. It should work somehow because
Mihai overrides the 'g' command...
Either way, if you change all the commands to something that gmail
doesn't use, it works.
I tried to poke around in the code a bit to see if I could fix a few
bugs (like those annoying alerts on action failures [comment out the
alert() calls in the simulateClick() function]), with a little
success. I did notice that Mihai used keycodes while you have actual
letters. That difference could be the key to overriding Gmail's
default shortcuts. I don't know for sure, since I'm mainly a
GreaseMonkey user, but it's an idea.
Also, is there a way to make sure conversations are selected before
trying to apply an action with simulateClick()? That would eliminate
a lot of errors that pop up on accidental calls to macros that require
a selection.
I don't know how much collaboration and/or cooperation we can expect
from the Gmail Team, but perhaps they could add to the unofficial API
object methods that access common actions like marking read/unread,
starring/unstarring, etc. to make more complex macros easier? Then I
could make myself a macro to take a message, mark it as read, unstar
it, and archive... Just an idea.
On Nov 7, 8:34 pm, Brent Nef <brent....@gmail.com> wrote:
> http://groups.google.com/group/gmail-power-users/web/gmail-macros-new...
On Nov 7, 2007 6:34 PM, Brent Nef <bren...@gmail.com> wrote:
>
> http://groups.google.com/group/gmail-power-users/web/gmail-macros-new-bn.user.js
--
Ben Hirsch
Carl
On Nov 9, 7:16 pm, "Ben Hirsch" <benhir...@gmail.com> wrote:
> I get that too.
>
> On 11/9/07, Mark Engelberg <mark.engelb...@gmail.com> wrote:
>
>
>
> > When using this script, I get an error message when I hit 'r' to reply
> > a message ("couldn't find menu item node 'mark as read'").
>
> > On Nov 7, 2007 6:34 PM, Brent Nef <brent....@gmail.com> wrote:
>
> >http://groups.google.com/group/gmail-power-users/web/gmail-macros-new...
>
> --
> Ben Hirsch
Carl found/fixed the 'r' problem, and suggested the mapping for new
label be changed to 'N'... I made these changes, but gmail has the
same key (shift+n) mapped to "update conversation" when you have a
message waiting, so I might change it back. Any thoughts?
//New Label
'n': function() {
if (gmail.getActiveViewType() == 'tl') {
clickMoreActionsMenuItem("New label...",NEW_LABEL_ACTION);
}
},
to allow the mapping only when looking at threads.
Carl
Carl
Tks
On 11 nov, 20:32, "Mohamad Alhomsi" <peacebeupon...@gmail.com> wrote:
> that is right . "U" should for updating ..
>
> thakn you
>
> On Nov 11, 2007 9:14 AM, Carl M <carl0muel...@gmail.com> wrote:
>
>
>
>
>
> > I recommend "U" for "update conversation". This fits with "u", which
> > means return to the thread list and update it. Then keep "N" for "new
> > label".
>
> > Carl
>
> > On Nov 11, 12:50 am, voyagerfan5761 <voyagerfan5...@gmail.com> wrote:
> > > I agree, it's necessary to have new label functionality within a
> > > conversation, too. Perhaps the key should just be changed. Does
> > > Gmail use "w" for anything?
>
> > > On Nov 10, 9:40 pm, Brent Nef <brent....@gmail.com> wrote:
>
> > > > I still add new labels from the conversation view too, so I don't know
> > > > what the best thing to do is here. Maybe add a keymapping for the
> > > > update conversation that you can set that too.
>
> --
> Mohamad Alhomsi
> 7066277577
On Nov 11, 1:18 pm, "zleban...@gmail.com" <bclementz...@gmail.com>
wrote:
Love this script BTW. Am using the latest Brent Nef script and I have
question. Is there a shortcut to "Delete Forever" specifically for
the Spam label?