Gmail Drafts & Spam count Hide

By Manu J Last update Dec 21, 2008 — Installed 685 times.

International support: Does not work

in
Subscribe to International support: Does not work 1 post, 1 voice

bananaphone Scriptwright

Because "/\w+/" @ innerHTML.match(/\w+/)[0]; only dectects spam/draft spelled with characters from a-z.
Better is to use:
/[^\u0028\u0029]+/ Detects all but "(" and ")"
or
/[^\s]+/ Detect all to first space character.

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