/ Published in: JavaScript
This is my first ever bookmarklet. It's simple and could be tightened up but it works for me (FF3 Ubuntu 8.10).
Oh, by the way, what it does is load gmail (if you're signed in, which I always am) with a search for the unread messages (is:unread) of the current day (after:2009-4-7, for example).
Oh yeah. If you want to use it just create a bookmark in your browser (or del.icio.us) and use this snippet as the url.
I noticed that it doesn't always work in the current tab, but always in new tabs (via middle click, etc). Feel free to advise on how to correct that.
fixed... thanks to these good folks:
<a href="http://stackoverflow.com/questions/728079/gmail-javascript-bookmarklet">http://stackoverflow.com/questions/728079/gmail-javascript-bookmarklet</a>
Oh, by the way, what it does is load gmail (if you're signed in, which I always am) with a search for the unread messages (is:unread) of the current day (after:2009-4-7, for example).
Oh yeah. If you want to use it just create a bookmark in your browser (or del.icio.us) and use this snippet as the url.
I noticed that it doesn't always work in the current tab, but always in new tabs (via middle click, etc). Feel free to advise on how to correct that.
fixed... thanks to these good folks:
<a href="http://stackoverflow.com/questions/728079/gmail-javascript-bookmarklet">http://stackoverflow.com/questions/728079/gmail-javascript-bookmarklet</a>
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
javascript:void((function(){var%20t=%20new%20Date(),y=t.getFullYear(),m=t.getMonth()+1,d=t.getDate();window.location.href="http://mail.google.com/mail/#search/is%3Aunread+after%3A"+y+"-"+m+"-"+d;})())