Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Modified Gmail Macros v. 2.0

Extra (customizable) keyboard shortcuts and macros for Gmail 2.0. Based on the work of Mihai @ persistent.info. Version(date): 20080214.1

For comments/questions/requests for help.
  • See 'h' for list of macros available.
  • If your configured keys ever get hosed, you can always go to about:config and reset the "macros" and "selectors" greasemonkey values. I don't think that this should be a problem, it's pretty stable.
  • Use keys to navigate the help screen: up/down to change sections, right enters macro section. Use tab to get to next macro, etc.
Case sensitive keys (overrides any gmail shortcuts using that key).
'g' --> 'go to label'
'l' --> 'apply label'
'L' --> 'remove label'
'N' --> 'create and apply label'
'e' --> 'always archive'
'E' --> 'Mark as read and archive'
'f' --> 'focus: loads all inbox/unread/starred messages in the current label'
'i' --> 'move selected messages to inbox'
'T' --> 'Mark as read and move to trash'
't' --> 'trash'
'r' --> 'Mark as read'
'R' --> 'Mark as unread'
'X' --> 'Select'
    '+a' --> all
    '+n' --> none
    '+s' --> starred
    '+S' --> unstarred
    '+u' --> unread
'O' --> 'Open all conversations in the current thread
',' --> 'Mark as read, all unread'
'U' --> 'Update current conversation'

Version History

20080214.1: New labels fix was weak and needed to be redone.
20080127.1: Fixed for recent gmail changes (go to, label). Removed dependencies from Folders4Gmail (if you have labels with '/' or '\' in them they are accessed by what comes after the '/' or '\'. Might cause problems from labels with identical sub-structure. I'd be interested to know if anyone is actually impacted by this. Bug with new labels running macros fixed. Fixed bug caused by recent greasemonkey security update.
20080124.1: Bug with help display, bug with g+"Starred".
20080114.1: Added help keyboard shortcuts (up/down to move between sections and right arrow to start modifying macros -- then tab as normal). A bit clunky, but it works.
20071206.1: Added Folders4Gmail support, auto-update code and some minor bug fixes.



May 12, 2008
sewpafly Script's author

Using latest firefox nightlies is still working for me (except for using 'e' or 'E'). It might mean gmail is rolling out some new changes though.


 
May 12, 2008
dewey1973 User

This (and other gmail related scrips) seem to have stopped working for me on FireFox 3b5. Anyone else having problems?


 
Apr 18, 2008
takabanana User

Adding Labels dies if:
1. You install and enable GTDInbox
2. You try to apply a (sub)label that comes after a slash (i.e. "world" of "hello/world"). Single/Top-level labels can be applied OK.

Once you remove GTDInbox, labeling works at the lower (sub)levels.

I don't know if this is a GTDInbox issue or a Macros issue. Any ideas? (I'm actually using Better Gmail 2)


 
Apr 9, 2008
kaz User

works now. had to log out, kill browser, log back in. Apparently when it changed to the newer version it left some stuff laying around in the session.


 
Apr 9, 2008
sewpafly Script's author

@kaz - it's working for me on my domain. Is your mail URL not similar to http(s)://mail.google.com/a/<yourdomain />


 
Apr 9, 2008
kaz User

gmail for domains has now been rolled out to the new version. can this script be updated to work on domains as well? the older one no longer works.


 
Apr 9, 2008
sewpafly Script's author

@CheriePie - Gmail decided when they implemented imap that you could have "sub-folders" which is really just a label+"/"+label as one label. To make the selections go faster the script sets up the available labels as everything after the last "/". So in this case if you used r instead of p, you should have your label applied. Maybe I should make this a configurable option as well...


 
Apr 9, 2008
CheriePie User

Actually, further to my last post, since I can't edit it, I discovered that it's not seeing my tag "Passwords/Registration" as an actual tag, which might be part of the problem. Does it have a problem recognizing tags with a / in them?


 
Apr 9, 2008
CheriePie User

Great script! I appreciate the little extras! :)

I have a question though and I apologize if this was already answered somewhere but I couldn't find it. I recently switched to this script from the original Gmail Macros script when I came across it via Better Gmail. But one problem I have that works differently from the original is when I'm trying to label a message and 2 of my labels begin with the same letters, it'll automatically take the first one without waiting for me to type more characters to make it unique. Is there a workaround for this? Or is it perhaps because I'm using this integrated with Better Gmail?


 
Mar 7, 2008
fredy12345 User

Free online consultation
http://sophia.smith.edu/adaclass/index.php/gath...
http://sophia.smith.edu/adaclass/index.php/gath...
http://sophia.smith.edu/adaclass/index.php/gath...
http://www.biosurvey.ou.edu/swan/phpBB2/viewtop...
http://www.biosurvey.ou.edu/swan/phpBB2/viewtop...
http://www.biosurvey.ou.edu/swan/phpBB2/viewtop...
http://casos.isri.cmu.edu/phpbb2/viewtopic.php?...
http://casos.isri.cmu.edu/phpbb2/viewtopic.php?...
http://casos.isri.cmu.edu/phpbb2/viewtopic.php?...
http://nyc-amp.cuny.edu/Community/DiscussionFor...


 
Mar 6, 2008
fredy12345 User

See new wiki
http://wiki.script.aculo.us/scriptaculous/show/...
http://wiki.script.aculo.us/scriptaculous/show/....
http://wiki.script.aculo.us/scriptaculous/show/....
http://wiki.script.aculo.us/scriptaculous/show/....
http://wiki.script.aculo.us/scriptaculous/show/....


 
Feb 18, 2008
Geobert User

seems that the problem from my last comment comes from google, today it works. Sorry.


 
Feb 15, 2008
sjb User

Thank you for continuing to update this script! It is one of the best scripts ever written for Greasemonkey.

Best,

/s


 
Feb 15, 2008
Geobert User

since today, it seems the script does not work anymore, nothing works.


 
Feb 14, 2008
kaz User

excellent updates, thanks... I can finally use gmail again. life without readacrchive is painful.


 
Jan 29, 2008
sewpafly Script's author

s/tdd/mathmike

I'm on a roll today.


 
Jan 29, 2008
sewpafly Script's author

@tdd - oops, you're right. I misread that. I'll look at it some more and get a fix out later. This probably means that there are other functions that act similarly...


 
Jan 29, 2008
mathmike Scriptwright

Yes, I'm using the most recent version (20080127.1).

My problem is different from tdd's, because I'm trying to create a label through the internal gmail interface (through create filter). I can create a label by typing "N" just fine.


 
Jan 29, 2008
sewpafly Script's author

@mathmike - What version are you using. This was the same problem that tdd was experiencing and I fixed in the latest version (20080127.1)


 
Jan 29, 2008
mathmike Scriptwright

minor bug with the new version:

When I go to through the gmail interface to create a new filter, it gives me an option of creating a new label in the process. The dialog for creating a new label won't let me type certain letters (like e or i) that are overridden by macros.

This seems specific to your version of macros, and doesn't show up in Mihai's version.


 
Jan 28, 2008
tdd User

don't know if my problem was related to the disappearing 'G' dialog issues or not, but the update fixed all issues I experienced. Thanks for all the work and attention, great script!


 
Jan 27, 2008
sewpafly Script's author

@sjb - Look in the Error Console and see if you see the HELP command (it's under the message tab) being called.

Alternately, I've been seeing some weird activity where it will work, stop working and work again, but is unfortunately unrepeatable. You might try reloading gmail and seeing if the problem goes away.


 
Jan 27, 2008
sjb User

thanks sewpafly!

looks like everything works well now, though i can't seem to get your customization screen to appear. the hotkey is not working. any suggestions?

best.

/s


 
Jan 26, 2008
sjb User

i just discovered that someone was having this same issue at persistent.info. mihai has updated his version as of yesterday. here are some bits from the thread:

I'm having a problem using "G" to go to any folder. I press "G" the menu comes up. I type a folder, the menu disappears, then nothing happens. Anyone else having this?
Posted by: dep January 25, 2008 1:57 PM
The script has been updated to handle the latest updates to Gmail (where the JavaScript runs in an iframe), so the "g" and "f" commands should work again.
Posted by: Mihai Parparita January 25, 2008 4:12 PM


 
Jan 25, 2008
sjb User

howdy sewpafly.

for some reason, as of yesterday, your script started exhibiting a very odd problem. when actually coming to the point of applying a label, or going to a label, the "navigational overlay" disappears and the label does not get applied nor does navigation occur. it's like right at the moment of determining what it is supposed to apply, or where it is supposed to go, it stops.

have you seen this?

please resolve if possible!

best.

/s


You could comment on this script if you were logged in.