View Full Version : xanga.....


cute_angel10490
08-01-2003, 06:15 AM
hi, what's the code for changing the screenames to their names in sites I read? like this (http://www.xanga.com/diD_u_C_dA_kiTtY), I saw it in the forum before but I can't find it

Thanks! :)

SizzZzlinhair
08-01-2003, 06:18 AM
I'm not really sure what you mean...

lilvietkid87
08-01-2003, 06:34 AM
welll you use the same one that you use for changing the names of links... so if you dont have that then here it is... i uppercased one of them to show you where to change things... and you put it in website stats.... if you have questions just pm me or post il check back...

<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 (/USERNAME/i)) links[l].innerHTML = str.replace (/xanga/i, "WHAT YOU WANT TO CHANGE IT TO");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "send a message");
else if (str.match (/Click here/i)) links[l].innerHTML = str.replace (/Click here/i, "clickie");
else if (str.match (/sign my guestbook/i)) links[l].innerHTML = str.replace (/sign my guestbook/i, "sign my g* book");
else if (str.match (/view entire profile/i)) links[l].innerHTML = str.replace (/view entire profile/i, "profile");
else if (str.match (/review/i)) links[l].innerHTML = str.replace (/reviews/i, "[r]eview");
else if (str.match (/event/i)) links[l].innerHTML = str.replace (/events/i, "[e]vent");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "[s]ubscribe");
else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "propz");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "messages xP");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "message xP");
else if (str.match (/Add lilvietkid87 to my list/i)) links[l].innerHTML = str.replace (/Add lilvietkid87 to my list/i, "add me");
else if (str.match (/Get full email subscription!/i)) links[l].innerHTML = str.replace (/Get full email subscription!/i, "e-mail");
else if (str.match (/next 5/i)) links[l].innerHTML = str.replace (/next 5/i, "---");
else if (str.match (/previous 5/i)) links[l].innerHTML = str.replace (/previous 5/i, "---");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "out");
else if (str.match (/signin/i)) links[l].innerHTML = str.replace (/signin/i, "in");
else if (str.match (/join/i)) links[l].innerHTML = str.replace (/join/i, "join");
else if (str.match (/oldest/i)) links[l].innerHTML = str.replace (/oldest/i, "old");
else if (str.match (/newest/i)) links[l].innerHTML = str.replace (/newest/i, "new");
else if (str.match (/browse other blogrings.../i)) links[l].innerHTML = str.replace (/browse other blogrings.../i, "bloggiez");
else if (str.match (/suggest a link/i)) links[l].innerHTML = str.replace (/suggest a link/i, "links");
else if (str.match (/recommend to friend/i)) links[l].innerHTML = str.replace (/recommend to friend/i, "recommend");
else if (str.match (/create a site/i)) links[l].innerHTML = str.replace (/create a site/i, "CREATE A SITE");
else if (str.match (/refresh/i)) links[l].innerHTML = str.replace (/refresh/i, "refresh");
else if (str.match (/previous/i)) links[l].innerHTML = str.replace (/previous/i, "previous");
else if (str.match (/random/i)) links[l].innerHTML = str.replace (/random/i, "random");
else if (str.match (/next/i)) links[l].innerHTML = str.replace (/next/i, "next");
else if (str.match (/Click here to take lilvietkid87 off your list/i)) links[l].innerHTML = str.replace (/Click here to take lilvietkid87 off your list/i, "why do you want to take me off... :[ ");

renay
08-01-2003, 06:35 AM
i know the code for that..hold on...


<script type="text/javascript">
//
// ©2003 EasterEgg, http://www.xanga.com/easteregg
//
// For use at Xanga only.
//
// This script replaces any given word or text fragment with
// whatever you want: new words and fragments, or even HTML!
//
// Actually it's pretty simple: add the words or fragments you
// wish to replace to the array "oldWords" (each word placed
// between double quotation marks, and separated by colons as you
// can see below) and add their replacements to the array "newWords",
// at the same position as the original words in "oldWords".
// The example is pretty self-explaining.
//
// The script is case sensitive, meaning that if you add "something"
// to "oldWords" array it will not recognize "SOMETHING", or "SoMetHInG".
//
// You can adjust the existing arrays in this code as you see fit,
// as long as both arrays keep the same size (same amount of words
// in both arrays), otherwise a script error will occur.
//
// Copy this entire code and paste in the webstats box at your
// Look and Feel page.
//
// You're free to use this script as long as this comment remains intact,
// and as long you won't use it to cripple the comments of your visitors;
// after all, no one likes his/her words getting twisted...
//

function replaceWords()
{
// ***add the words or fragments you wish to replace below
var oldWords = new Array(
"sourxpurplexnerd",
"Sites I Read",
"Publish Comments",
"eprops",
"eProps",
"comments",
"Comments",
"view entire profile",
"sign my guestbook",
"My Blogrings",
"Posting Calendar",
"Get Involved!",
"Real Name:",
"Birthday:",
"=D:",
"Expertise:",
"Email:",
"Stats",
"Member since:",
"06/17/2003",
"Gender:",
"undefined");

// *** add the replacing words or fragments below
var newWords = new Array(
"renee",
"mai fellow xangerz",
"commentz",
"propz",
"propz",
"amo",
"amo",
"renee's 411",
"g~book",
"i am lords of these rings!",
"cal3ndar",
"g0t xanga?!",
"also know as",
"th3 b3st day 3v3r",
"=D",
"wut !m g00d at:",
"talk t0 m0i!!",
"xanger since:",
"o6.sevnT.03",
"g3nda:",
"chica");

allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');

var collections = new Array(allTableData,allTableHeaders);

for (var k = 0 ; k < collections.length ; ++k )
{
for (var i = 0 ; i < collections[k].length ; ++i )
{
if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
{
for ( var n = 0 ; n < oldWords.length; ++n )
{
var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWords();
</script>



there we go just folow the instructions! =)