GMail SVN Highlighter

By Sergey Martynov Last update Mar 9, 2009 — Installed 333 times.

Bold Labels

in
Subscribe to Bold Labels 2 posts, 1 voice



Arthaey Angosii Scriptwright
FirefoxMacintosh

I like seeing the Author, Date, New Revision etc labels in bold. I added this line just before your divs[i].innerHTML = ih line:

ih = ih.replace(/(Author|Date|New Revision|Modified|Log):/g, '<b>$1:</b>');

 
Arthaey Angosii Scriptwright
FirefoxMacintosh

I've also added yellow highlighting to the author name and log message, by adding the following code directly below the line with the "fix for incorrect gmail behavior" comment:

ih = ih.replace(/(Author:\s*)((?:.|\n)*?)(\nDate:)/, '$1<span style="background-color:#FF9">$2</spanz>$3');
ih = ih.replace(/(Log:.*\n)((?:.|\n)*?)(\nModified:)/, '$1<span style="background-color:#FF9">$2</span>$3');

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