GMail Character Count

By Tim Smart Last update Dec 17, 2008 — Installed 533 times. Daily Installs: 0, 2, 5, 0, 0, 4, 0, 0, 0, 0, 1, 2, 0, 0, 2, 1, 1, 0, 0, 0, 0, 2, 2, 0, 0, 0, 1, 0, 1, 0, 0

Exclude Quoted Text

Subscribe to Exclude Quoted Text 2 posts, 1 voice

poseurtech User

It would be nice to have an option to exclude text quoted from previous emails.

Example:

Count characters here.
On Fri, Dec 19, 2008 at 19:25, first last <email> wrote:
> Don't count characters here.

 
poseurtech User

With a little modification you an fake this.


function iev(count)
{
var ifs=$('iframe',g.getActiveViewElement());
var ifm;
for(var i=0;i<ifs>
{
if(!ifs[i].gcc_added)
{
ifm=ifs[i].contentDocument;
ifm.body.setAttribute('count_class','char_count'+count);
ifm.count_class='char_count'+count;
ifm.addEventListener('keyup',function()
{
var spans=$('.'+this.body.getAttribute('count_class'),g.getActiveViewElement());
for(var i=spans.length-1;i>=0;i--)
{
// start modified code
current=this.body.textContent.length;
spans[i].innerHTML='( '+first+' + '+(current-first)+' Characters )';
// end modified code
};
return;
},false);
var spans=$('.char_count'+count,g.getActiveViewElement());
// start added code
first=ifm.body.textContent.length;
// end added code
for(var i=spans.length-1;i>=0;i--)
{
current=ifm.body.textContent.length;
// start modified code
spans[i].innerHTML='( '+first+' + 0 Characters )';
// end modified code
};
ifs[i].gcc_added=true;
return;
}
};
return;
};

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel