Log In · Register

 
script to change e-props/comments
ridespunks
post Jun 9 2004, 11:07 PM
Post #1


Newbie
*

Group: Member
Posts: 5
Joined: Feb 2004
Member No: 2,818



umm, yeah, i am having some trouble on finding the script to change e-props and comments so they say something else, it would be a great help if some would could post it for me
 
 
Start new topic
Replies
god of html
post Jun 10 2004, 07:06 AM
Post #2


html god
***

Group: Member
Posts: 67
Joined: Jun 2004
Member No: 21,252



here it is..
<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "cents");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "cent");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "dollars");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "dollar");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "add me");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "log out");
}//-->
</script>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: