Twitter Display Name Mod

By Neo Geek Last update Mar 1, 2007 — Installed 289 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 3 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Junk Blocker Scriptwright

Extended condition to do a litte more (before AJAX refreshes add more content :( ).

if (divs[i].className.match(/^(tab|wrapper)$/)) {
  var strong = divs[i].getElementsByTagName('strong');
  for (var j = 0; j < strong.length; j++) {
    var username = strong[j].getElementsByTagName('a')[0].innerHTML;
    if (username.match(/^[a-z0-9_]+$/i)) {
      var displayname = strong[j].getElementsByTagName('a')[0].title;
      strong[j].getElementsByTagName('a')[0].innerHTML = displayname;
      strong[j].getElementsByTagName('a')[0].title = username;
    }
  }
}

 
neko Scriptwright

yay! the first Twitter script!

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