<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Gmail Macros | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/2432</link>
    <description>Recent comments on userscript: Gmail Macros</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by fgregg @ Wed, 07 Nov 2007 10:44:56 -0600</title>
      <description>&lt;p&gt;New version at &lt;a href=&quot;http://blog.persistent.info/2007/11/macros-for-new-version-of-gmail.html&quot;&gt;http://blog.persistent.info/2007/11/macros-for-...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 07 Nov 2007 10:44:56 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68004</guid>
      <author>fgregg</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Andreas Serna @ Mon, 05 Nov 2007 21:35:12 -0600</title>
      <description>&lt;p&gt;For the top row of buttons, Gmail macros calls the &quot;id=x&quot; variable from HTML in the old Gmail, where x equals the following id's:
&lt;br /&gt;     -Archive: act= ac_rc_^i
&lt;br /&gt;     -Report Spam: ac_sp
&lt;br /&gt;     -Delete: ac_tr
&lt;br /&gt;     -Refresh: rfr&lt;/p&gt;

&lt;p&gt;In new Gmail the HTML uses the parameter &quot;act=x&quot;, where x equals the following numbers:
&lt;br /&gt;     -Archive: 7
&lt;br /&gt;     -Report Spam: 9
&lt;br /&gt;     -Delete: 10
&lt;br /&gt;     -Refresh:20&lt;/p&gt;

&lt;p&gt;For compatibility with both versions, Gmail macros needs to be changed to call either one for the variables for each action.&lt;/p&gt;</description>
      <pubDate>Mon, 05 Nov 2007 21:35:12 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68005</guid>
      <author>Andreas Serna</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Beau Gunderson @ Mon, 05 Nov 2007 17:59:21 -0600</title>
      <description>&lt;p&gt;+1 for updating this to Gmail 2.0; this is the script that made Gmail so much more usable for me (with R for mark read and E for archive).&lt;/p&gt;</description>
      <pubDate>Mon, 05 Nov 2007 17:59:21 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68006</guid>
      <author>Beau Gunderson</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by David Backeberg @ Mon, 05 Nov 2007 13:38:54 -0600</title>
      <description>&lt;p&gt;Until we get an update Gmail Macros for Gmail 2.0, you can get back Gmail Macros functionality.&lt;/p&gt;

&lt;p&gt;In the top right corner, at least right now, there's an option called &quot;Older version&quot; which reverts Gmail to the UI version when the Gmail Macros still worked.&lt;/p&gt;

&lt;p&gt;Hooray for a workaround!&lt;/p&gt;</description>
      <pubDate>Mon, 05 Nov 2007 13:38:54 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68007</guid>
      <author>David Backeberg</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by David Backeberg @ Mon, 05 Nov 2007 12:57:11 -0600</title>
      <description>&lt;p&gt;Let's talk about exactly how it's broken, and maybe we can fix it ourselves.&lt;/p&gt;

&lt;p&gt;I've noticed that pressing 'y' to archive is working fine.&lt;/p&gt;

&lt;p&gt;But that pressing 'l' to label a message is NOT working. Has anybody noticed other problems?&lt;/p&gt;</description>
      <pubDate>Mon, 05 Nov 2007 12:57:11 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68008</guid>
      <author>David Backeberg</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Voyagerfan5761 @ Sun, 04 Nov 2007 00:46:45 -0500</title>
      <description>&lt;p&gt;Please tell me you'll be updating the code for the new Gmail interface? :)&lt;/p&gt;</description>
      <pubDate>Sun, 04 Nov 2007 00:46:45 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68009</guid>
      <author>Voyagerfan5761</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Andreas Serna @ Fri, 02 Nov 2007 19:06:54 -0500</title>
      <description>&lt;p&gt;Broken for today's firefox update.&lt;/p&gt;</description>
      <pubDate>Fri, 02 Nov 2007 19:06:54 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68010</guid>
      <author>Andreas Serna</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by pax @ Sat, 29 Sep 2007 08:31:33 -0500</title>
      <description>&lt;p&gt;Please help a noob.
&lt;br /&gt;I want to make a macro that: 
&lt;br /&gt;&lt;b&gt;Forwards&lt;/b&gt; the selected message to a predefined address, &lt;b&gt;applies a label&lt;/b&gt;, then &lt;b&gt;archives&lt;/b&gt; the message.&lt;/p&gt;

&lt;p&gt;I have a office@xxx mailbox and I want to forward the messages to the proper people (and keep a count of the forwards) - a macro would definetly improve my life.&lt;/p&gt;

&lt;p&gt;Which lines need to be changed?
&lt;br /&gt;Thank you.&lt;/p&gt;</description>
      <pubDate>Sat, 29 Sep 2007 08:31:33 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68011</guid>
      <author>pax</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Samat Galimov @ Fri, 25 May 2007 22:19:19 -0500</title>
      <description>&lt;p&gt;Guys, updated version of the script if found in his &lt;a href=&quot;http://blog.persistent.info/2005/12/greasemonkey-christmas.html&quot;&gt;blog&lt;/a&gt;!
&lt;br /&gt;Best regards... :)&lt;/p&gt;</description>
      <pubDate>Fri, 25 May 2007 22:19:19 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68012</guid>
      <author>Samat Galimov</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by theponywars @ Thu, 12 Apr 2007 11:54:50 -0500</title>
      <description>&lt;p&gt;this is a very good and useful script&lt;/p&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:54:50 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68013</guid>
      <author>theponywars</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jim Fitzpatrick @ Wed, 11 Apr 2007 18:33:49 -0500</title>
      <description>&lt;p&gt;@Mahesh: Press 'h' to see a list of all the available shortcut keys. If you still aren't getting this, try installing the script from persistent info directly.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Apr 2007 18:33:49 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68014</guid>
      <author>Jim Fitzpatrick</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Mahesh S @ Wed, 07 Mar 2007 22:53:27 -0600</title>
      <description>&lt;p&gt;Hi I am new to this greasemonkey scripts. could anyone please tell me what all shortcuts are enabled after installing this script. I installed this gmail macros after installing the grease monkey firefox extension, but I still haven't got access to any shortcuts while using gmail :(.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Mar 2007 22:53:27 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68015</guid>
      <author>Mahesh S</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Gurjeet Singh @ Sun, 19 Nov 2006 00:54:25 -0600</title>
      <description>&lt;p&gt;One of the limitations of this script has been that you have to keep the &quot;Labels&quot; node/table open for it to pickup your user-defined labels; and I don't like keeping my labels table/node open. If you have it closed, then you can Goto/Label only the standard labels.&lt;/p&gt;

&lt;p&gt;    So, yesterday I sat down hacking the JavaScript, and came up with  the following fix. Now, if the &quot;Labels&quot; node is closed, then it will first opne it, perform your action (goto/label), and then close it back again. Here it goes:&lt;/p&gt;

&lt;p&gt;    Note to non-JS/novice guys: &lt;code&gt; and &lt;/code&gt; tag are just delimiters, do not add them to your script; add just what is between them.&lt;/p&gt;

&lt;p&gt;    Declare a global variable (preferably just before &quot;function beginLabelAction()&quot;):&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;var closeLabels = false;
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;    Now, add the following 4 lines at the beginning of &quot;function beginLabelAction()&quot;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;  if (document.getElementById(&quot;nt_0&quot;).nextSibling == null){
&lt;br /&gt;    closeLabels = true;
&lt;br /&gt;    simulateClick(document.getElementById(&quot;nt_0&quot;), &quot;click&quot;);
&lt;br /&gt;  }
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;    Now, at the end of &quot;function endLabelAction()&quot;, add the following 4 lines:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;  if (closeLabels == true) {
&lt;br /&gt;    closeLabels = false;
&lt;br /&gt;    simulateClick(document.getElementById(&quot;nt_0&quot;), &quot;click&quot;);
&lt;br /&gt;  }
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;    I am myself pretty much a novice at JS, so raising a request in the community (here) for this feature was the easiest way to get this functionality. But yesterday, I decided that it was high time that I too dirtied my hands with JS. So I set off debugging GMail's DOM and JS using the firefox's built in DOM Inspector. I tried my hands on the Venkman debugger too, but that didn't prove of much help. I think 3 hours of my weekend afternoon were put to good use; you decide it.&lt;/p&gt;

&lt;p&gt;    I have been a great fan of the GMmacros script, and hope this adds more value to it. &lt;/p&gt;

&lt;p&gt;Best regards,
&lt;br /&gt;Gurjeet.&lt;/p&gt;</description>
      <pubDate>Sun, 19 Nov 2006 00:54:25 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68016</guid>
      <author>Gurjeet Singh</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Rigz @ Mon, 30 Oct 2006 03:42:48 -0600</title>
      <description>&lt;p&gt;p.s. to install the posted scipt, you need to right click &gt; View User Script Source&lt;/p&gt;</description>
      <pubDate>Mon, 30 Oct 2006 03:42:48 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68017</guid>
      <author>Rigz</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Rigz @ Mon, 30 Oct 2006 03:38:48 -0600</title>
      <description>&lt;p&gt;Mihai seems to be too busy to fix it. well, i found a post on the author's page about a group started for gmail scripts (very experimental). Thanks Scott for pointing it out.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://groups-beta.google.com/group/gmail-power-users&quot;&gt;http://groups-beta.google.com/group/gmail-power...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The script seems to work just great as it was first intended by the original author. Thanks to Karl/Anand/Brent for tweakin 'em up!&lt;/p&gt;</description>
      <pubDate>Mon, 30 Oct 2006 03:38:48 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68018</guid>
      <author>Rigz</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by madhatter 2 @ Sat, 28 Oct 2006 04:34:22 -0500</title>
      <description>&lt;p&gt;Waiting for an updated version, too.
&lt;br /&gt;Still wondering what might have caused it not working any longer. Already tried to switch back to an older version of greasemonkey, with no success...&lt;/p&gt;</description>
      <pubDate>Sat, 28 Oct 2006 04:34:22 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68019</guid>
      <author>madhatter 2</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Rigz @ Sat, 28 Oct 2006 01:46:36 -0500</title>
      <description>&lt;p&gt;used to work smoothly until a few days ago when the page didnt respond to goto (g) functions. applied this updated one and nothing seems to work now, not even the quicksilver... needs a fix, yet again. will keep comin back...&lt;/p&gt;</description>
      <pubDate>Sat, 28 Oct 2006 01:46:36 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68020</guid>
      <author>Rigz</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Edgar DSouza @ Wed, 25 Oct 2006 04:08:44 -0500</title>
      <description>Does this silly comment display mechanism not even honor &lt;br /&gt; tags? How is anyone supposed to put together a decent- looking comment???

Ed.</description>
      <pubDate>Wed, 25 Oct 2006 04:08:44 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68021</guid>
      <author>Edgar DSouza</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Edgar DSouza @ Wed, 25 Oct 2006 04:07:17 -0500</title>
      <description>I tooled around with the gmailmacros.user.js file in my ~/.mozilla/firefox/&amp;lt;some_weird_name&gt;.default/gm_scripts/ folder and seem to have gotten it working again&lt;br /&gt;&lt;br /&gt;

Near the beginning of the file, I found&lt;br /&gt;:
const LABEL_ACTIONS = {&lt;br /&gt;
 // g: go to label&lt;br /&gt;
 71: function(labelName) {&lt;br /&gt;&lt;br /&gt;
Near the bottom of this small function is:&lt;br /&gt;
   // event.target gets set to the document (and is read-only, so we can't set&lt;br /&gt;
   // it by hand). Unfortunately, labelDiv.createEvent doesn't work either.&lt;br /&gt;
   // However, Gmail checks for both srcElement and target, so we can fake&lt;br /&gt;
   // it this way.&lt;br /&gt;
   event.srcElement = labelDiv;&lt;br /&gt;
   document.dispatchEvent(event);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
I have changed the last line shown above - document.dispatchEvent:&lt;br /&gt;
   //document.dispatchEvent(event);&lt;br /&gt;
       labelDiv.dispatchEvent(event);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
And now it seems to be working for me, although I don't know if it will stop working again tomorrow morning :-/
&lt;br /&gt;&lt;br /&gt;
Ed.&amp;lt;/some_weird_name&gt;</description>
      <pubDate>Wed, 25 Oct 2006 04:07:17 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68022</guid>
      <author>Edgar DSouza</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Edgar DSouza @ Wed, 25 Oct 2006 02:57:32 -0500</title>
      <description>&lt;p&gt;Using Firefox 1.5.0.3 on Mandriva 2006. The &quot;g&quot; function to goto labels is my primary interest in this script. After installing, it worked fine for a day. The next day, though &quot;g&quot; shows the &quot;Label Selector 9000&quot; &quot;popup&quot;, and it auto-completes label names, it did not actually go to that label. Refreshing the Gmail page and disabling, then re-enabling GreaseMonkey got it working again, for the whole day.
&lt;br /&gt;On day 3, it has stopped working totally, and no variation of day 2's procedure seems to work.&lt;/p&gt;

&lt;p&gt;I fetched the patch mentioned by Lady Madonna, and tried to patch the js file with &quot;patch gmailmacros.user.js /home/edgar/dl/gmail-macros-fix20060318.patch&quot; but this failed, with error messages stating 2 out of 2 hunks failed. With good reason, since this patch appears to be for an earlier version of the Macros script.&lt;/p&gt;

&lt;p&gt;I monitored the Javascript Console while invoking the &quot;g&quot; functions, but no error is reported from this JS file. It just doesn't work.
&lt;br /&gt;Apparently others have experienced intermittent failures too...&lt;/p&gt;

&lt;p&gt;Can the author please help?&lt;/p&gt;

&lt;p&gt;Thanks, 
&lt;br /&gt;Ed.&lt;/p&gt;</description>
      <pubDate>Wed, 25 Oct 2006 02:57:32 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68023</guid>
      <author>Edgar DSouza</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Boris Yim @ Thu, 05 Oct 2006 01:20:27 -0500</title>
      <description>&lt;p&gt;Need to change MARK_AS_UNREAD to &quot;ur&quot;.&lt;/p&gt;</description>
      <pubDate>Thu, 05 Oct 2006 01:20:27 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68024</guid>
      <author>Boris Yim</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by ajg23 @ Tue, 05 Sep 2006 17:27:41 -0500</title>
      <description>&lt;p&gt;Fantastic scripts! Two suggestions:&lt;/p&gt;

&lt;p&gt;1) &quot;P&quot; (purge) gets in the way of &quot;n&quot;/&quot;p&quot; in conversation view (to move among msgs in conversation)! I recommend changing this to another shortcut.&lt;/p&gt;

&lt;p&gt;2) I think this would be revolutionary: ability to take action on the item AT THE CARET without having to &quot;X&quot; it and without interfering with whatever *is* &quot;X&quot;'d...Perhaps &amp;lt;shift&gt;+key could accomplish this. Examples:&lt;/p&gt;

&lt;p&gt;  ===Message list view===
&lt;br /&gt;    &amp;lt;shift&gt;+T: trash conversation AT CARET
&lt;br /&gt;    &amp;lt;shift&gt;+E: archive conversation AT CARET&lt;/p&gt;

&lt;p&gt;  ===Conversation view===
&lt;br /&gt;    &amp;lt;shift&gt;+T: trash message AT CARET
&lt;br /&gt;    &amp;lt;shift&gt;+E: archive message AT CARET&lt;/p&gt;

&lt;p&gt;Know this would be more of a challenge but you've gotta admit it would be useful!&amp;lt;/shift&gt;&amp;lt;/shift&gt;&amp;lt;/shift&gt;&amp;lt;/shift&gt;&amp;lt;/shift&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 05 Sep 2006 17:27:41 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68025</guid>
      <author>ajg23</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Doug Harris @ Wed, 05 Jul 2006 06:46:43 -0500</title>
      <description>&lt;p&gt;I installed in early April on machine #1 and it worked fine. In the past month or so, I installed on machines #2 &amp;amp; 3 and it didn't work.&lt;/p&gt;

&lt;p&gt;I copied the js file from #1 to #2 and it works on #2. The working version is the version from the &quot;Original Source Location&quot; link on this page (pointing to &lt;a href=&quot;http://persistent.info/greasemonkey/gmail-macros.user.js&quot;&gt;http://persistent.info/greasemonkey/gmail-macro...&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Is anybody else having similar experiences?&lt;/p&gt;</description>
      <pubDate>Wed, 05 Jul 2006 06:46:43 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68026</guid>
      <author>Doug Harris</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by Georges Dup&#233;ron @ Tue, 18 Apr 2006 10:15:07 -0500</title>
      <description>&lt;p&gt;A nice &amp;amp; accessible reminder for shortcuts in the gmail interface is welcome.
&lt;br /&gt;Also, I'd love to have a vim-like set of commands for editing the text &amp;amp; managing messages, etc. (visual selection of messages using arrow keys would be wonderfull).
&lt;br /&gt;Thanx for he script! It's realy cool.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Apr 2006 10:15:07 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68027</guid>
      <author>Georges Dup&#233;ron</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
    <item>
      <title>Archived Comments, replied by mbaluyos @ Mon, 27 Mar 2006 04:47:01 -0600</title>
      <description>&lt;p&gt;hmmm... purge (mark as read, archive) doesn't work anymore.&lt;/p&gt;</description>
      <pubDate>Mon, 27 Mar 2006 04:47:01 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:16023:68028</guid>
      <author>mbaluyos</author>
      <link>http://userscripts.org/topics/16023</link>
    </item>
  </channel>
</rss>
