Joeytje50

username replace

Aug 2nd, 2011
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // {{USERNAME}} username replace, except for in user blogs
  2.  
  3. function UserNameReplace() {
  4.     if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;
  5.     if (wgCanonicalNamespace != "User_blog" && wgCanonicalNamespace != "Blog") {
  6.     $("span.insertusername").html(wgUserName);
  7.     }
  8. }
  9. addOnloadHook(UserNameReplace);
Advertisement
Add Comment
Please, Sign In to add comment