<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Gmail Unreads Summary | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/55245</link>
    <description>Recent comments on userscript: Gmail Unreads Summary</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Gmail Adding Item to &amp;quot;Reply&amp;quot; menu, replied by sanodor</title>
      <description>&lt;p&gt;Hi:&lt;/p&gt;

&lt;p&gt;I am trying to add an item to the &quot;Reply&quot; menu when I open any email in gmail. Here's my snippet, which does not work , could you please advice , it I am missing something here?&lt;/p&gt;

&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name          Export Link
&lt;br /&gt;// @description   Provide the export button.
&lt;br /&gt;// @version       0.1
&lt;br /&gt;// @require       &lt;a href=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.3...&lt;/a&gt;
&lt;br /&gt;// @include       *
&lt;br /&gt;// ==/UserScript==
&lt;br /&gt;//&lt;/p&gt;

&lt;p&gt;$(document).ready(function() {&lt;/p&gt;

&lt;p&gt;  var GMAIL = null;
&lt;br /&gt;  
&lt;br /&gt;  // Loads Gmail-Greasemonkey API (&lt;a href=&quot;http://code.google.com/p/gmail-greasemonkey/wiki/GmailGreasemonkey10API&quot;&gt;http://code.google.com/p/gmail-greasemonkey/wik...&lt;/a&gt;)
&lt;br /&gt;  if (unsafeWindow.gmonkey) {
&lt;br /&gt;    unsafeWindow.gmonkey.load('1.0', init);
&lt;br /&gt;  }&lt;/p&gt;

&lt;p&gt;  function init(obj) {
&lt;br /&gt;    GMAIL = obj;
&lt;br /&gt;    create_exportButton();
&lt;br /&gt;  };&lt;/p&gt;

&lt;p&gt;  function create_exportButton(){&lt;/p&gt;

&lt;p&gt;	var body = winActiveViewElement();&lt;/p&gt;

&lt;p&gt;	var jbody=($body);&lt;/p&gt;

&lt;p&gt;	/ Custom &quot;DIV&quot; New Option for the &quot;Reply&quot; Button.
&lt;br /&gt;	var llexport_Content = '&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;img src=&quot;images/cleardot.gif&quot; alt=&quot;&quot; /&gt;Export Button&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';&lt;/p&gt;

&lt;p&gt;	//Add to the Reply Menu
&lt;br /&gt;	jbody.find('div.b7.J-M').find('div.J-N').parent.after(llexport_Content);
&lt;br /&gt;	
&lt;br /&gt; };
&lt;br /&gt;	
&lt;br /&gt;  
&lt;br /&gt;  function winActiveViewElement() {
&lt;br /&gt;    return $('iframe#canvas_frame', parent.document).contents().find('div.nH.q0CeU.z');
&lt;br /&gt;  };&lt;/p&gt;

&lt;p&gt;});&lt;/p&gt;</description>
      <pubDate>Sun, 28 Mar 2010 13:56:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:49654:235940</guid>
      <author>sanodor</author>
      <link>http://userscripts.org/posts/235940</link>
    </item>
    <item>
      <title>Gmail Adding Item to &amp;quot;Reply&amp;quot; menu, replied by sanodor</title>
      <description>&lt;p&gt;Hi:&lt;/p&gt;

&lt;p&gt;I am trying to add an item to the &quot;Reply&quot; menu when I open any email in gmail. Here's my snippet, which does not work , could you please advice , it I am missing something here?&lt;/p&gt;

&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name          Export Link
&lt;br /&gt;// @description   Provide the export button.
&lt;br /&gt;// @version       0.1
&lt;br /&gt;// @require       &lt;a href=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.3...&lt;/a&gt;
&lt;br /&gt;// @include       *
&lt;br /&gt;// ==/UserScript==
&lt;br /&gt;//&lt;/p&gt;

&lt;p&gt;$(document).ready(function() {&lt;/p&gt;

&lt;p&gt;  var GMAIL = null;
&lt;br /&gt;  
&lt;br /&gt;  // Loads Gmail-Greasemonkey API (&lt;a href=&quot;http://code.google.com/p/gmail-greasemonkey/wiki/GmailGreasemonkey10API&quot;&gt;http://code.google.com/p/gmail-greasemonkey/wik...&lt;/a&gt;)
&lt;br /&gt;  if (unsafeWindow.gmonkey) {
&lt;br /&gt;    unsafeWindow.gmonkey.load('1.0', init);
&lt;br /&gt;  }&lt;/p&gt;

&lt;p&gt;  function init(obj) {
&lt;br /&gt;    GMAIL = obj;
&lt;br /&gt;    create_exportButton();
&lt;br /&gt;  };&lt;/p&gt;

&lt;p&gt;  function create_exportButton(){&lt;/p&gt;

&lt;p&gt;	var body = winActiveViewElement();&lt;/p&gt;

&lt;p&gt;	var jbody=($body);&lt;/p&gt;

&lt;p&gt;	/ Custom &quot;DIV&quot; New Option for the &quot;Reply&quot; Button.
&lt;br /&gt;	var llexport_Content = '&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;img src=&quot;images/cleardot.gif&quot; alt=&quot;&quot; /&gt;Export Button&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';&lt;/p&gt;

&lt;p&gt;	//Add to the Reply Menu
&lt;br /&gt;	jbody.find('div.b7.J-M').find('div.J-N').parent.after(llexport_Content);
&lt;br /&gt;	
&lt;br /&gt; };
&lt;br /&gt;	
&lt;br /&gt;  
&lt;br /&gt;  function winActiveViewElement() {
&lt;br /&gt;    return $('iframe#canvas_frame', parent.document).contents().find('div.nH.q0CeU.z');
&lt;br /&gt;  };&lt;/p&gt;

&lt;p&gt;});&lt;/p&gt;</description>
      <pubDate>Sun, 28 Mar 2010 13:24:20 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:49650:235927</guid>
      <author>sanodor</author>
      <link>http://userscripts.org/posts/235927</link>
    </item>
  </channel>
</rss>
