Devin
Special Person
tay <3
without ME it's just AWESO
Posts: 1,199
|
Post by Devin on Apr 13, 2009 18:21:29 GMT -5
Code Name: Capitalize Display Name Creator: Devin Preview: DEVIN Definition: Changes all member's display names to all caps. Placement: Global Footer
<script type="text/javascript"><!-- /* Capitalize Display Name (dntresources.com) */ for(var a = document.getElementsByTagName("A"), i = 0; i < a.length; i++) if(a.href.match(/viewprofile&user=.+?$/i)) a.innerHTML = a.innerHTML.toUpperCase(); //--></script>
What to Edit: Nothing Additional Comments: Requested at PBS
|
|
|
Post by Wrighty on Apr 13, 2009 18:22:49 GMT -5
This could be done through CSS! And would be probably a better way to do it - although it could be a bit lengthy to be honest, with all the different groups!!
|
|
Devin
Special Person
tay <3
without ME it's just AWESO
Posts: 1,199
|
Post by Devin on Apr 13, 2009 18:30:06 GMT -5
Users would have to enter every group they have. This is like 5 lines and they dont have to do anything
|
|
|
Post by Wrighty on Apr 13, 2009 18:34:01 GMT -5
Indeed, or you could assign an extra classname to the user link!
|
|
Devin
Special Person
tay <3
without ME it's just AWESO
Posts: 1,199
|
Post by Devin on Apr 13, 2009 18:35:57 GMT -5
Or I could just capitalize it like the code is supposed to do!
|
|
|
Post by Wrighty on Apr 13, 2009 18:38:32 GMT -5
But applying the extra class & then CSS would be faster! I think!
|
|
Devin
Special Person
tay <3
without ME it's just AWESO
Posts: 1,199
|
Post by Devin on Apr 13, 2009 18:44:38 GMT -5
IDK but logically to me it seems like
JavaScript -> Font-Weight JavaScript -> Class -> CSS Font-weight
|
|
|
Post by Wrighty on Apr 13, 2009 18:47:27 GMT -5
a.style.textTransform = 'uppercase';would that work?
|
|
Devin
Special Person
tay <3
without ME it's just AWESO
Posts: 1,199
|
Post by Devin on Apr 13, 2009 18:53:07 GMT -5
Yeah, that'd work too. Might be a bit faster, infinitesimally at that.
|
|
|
Post by Wrighty on Apr 13, 2009 18:54:53 GMT -5
Hence why I submitted it! ;D
|
|
Devin
Special Person
tay <3
without ME it's just AWESO
Posts: 1,199
|
Post by Devin on Apr 14, 2009 4:10:23 GMT -5
Yeah that seems like it would be faster, but like I said probably not noticeably.
|
|