Published in: JavaScript
This is a very simple bookmarklet that will temporarily sort the visible messages in Gmail by subject. You'll have to run it again each time Gmail refreshes the list.
roryok found a few caveats when the list is sorted:
- Shift-clicking to select multiple messages will no longer work.
- If you archive or delete messages, they will not disappear.
Comments
Subscribe to comments
You need to login to post a comment.
Updated
I like the idea behind this and I'd like to get it to work. I assumed that I could drag the link at the top of the page to my bookmark bar and click it when I'm on my gmail page, although that didn't work. What do I need to do to get this working on my gmail account?
I like the idea behind this and I'd like to get it to work. I assumed that I could drag the link at the top of the page to my bookmark bar and click it when I'm on my gmail page, although that didn't work. What do I need to do to get this working on my gmail account?
I like the idea behind this and I'd like to get it to work. I assumed that I could drag the link at the top of the page to my bookmark bar and click it when I'm on my gmail page, although that didn't work. What do I need to do to get this working on my gmail account?
Well, Google changes the Gmail page every now and then. I'll try to update it when I get a chance.
Okay, the code was correct; I just forgot to change the link. It works now.
I had to change one line of code in this to get it working...
changed
document.getElementById('canvas_frame').contentWindow.document.getElementById(":op");
to
document.getElementById(":on");
sorry, thats wrong it should just change ":op" to ":on"
UPDATE:
change document.getElementById('canvasframe').contentWindow.document.getElementById(":op"); to document.getElementById('canvasframe').contentWindow.document.getElementById(":on");
Thanks, roryok. It's still working for me, but I've had that problem before - sometimes an element gets renamed just for the hell of it and I haven't figured out why. I'll take a look at it when I get a chance.
I've also just modified this to sort by sender, http://snipplr.com/view/21960/sort-gmail-messages-by-sender/
(my first snipplr post! yay!)
Huh. For me,
:opis still correct;:onis the cell containing the first checkbox. Out of curiosity, which theme are you using?i'm using the 'classic' theme... I wonder if it has something to do with labs features?
It is the labs! I'll figure out which one it is...
Out of the labs that I have enabled, the Quick Links one is causing the problem.
Okay, now it finds the table by its class. See if it works for you.
I have highlighted the contents of line 10 and pasted it my Safari browser but I can't get my Gmail to sort by subject. Is there something I missed?
It still works in Safari 3.2 Win on my computer. You could try logging in with labs turned off; sometimes those change IDs and stuff so scripts don't work. https://mail.google.com/mail/?labs=0