| */ // // This script allows you to use any online image as a profile pic, // regardless of it's size. You're no longer confined to 160 x 160 pixels // or the maximum width that the left sidebar allows, since this script // will also adjust the width of the left sidebar as you see fit. // Random pics will be chosen if you have added more than one profile pic // to the array "newProfileImages" below. // // ?003 EasterEgg, http://www.xanga.com/easteregg // Changes date text // For use at Xanga only. // // Info at http://dorkette.net // function replaceWordsDates() { // ***add the Months or Days you wish to replace below var oldWordsDates = new Array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ); // *** add the replacing Months or Days below var newWordsDates = new Array( "january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december", "love me monday ", "trust me tuesday", "wish me wednesday", "think of me thursday", "kiss me friday", "dance with me saturday", "sing me sunday" ); allDivData = document.getElementsByTagName('div'); var collections = new Array(allDivData); for (var k = 0; k < collections.length; ++k ) { for (var i = 0; i < collections[k].length; ++i ) { if (collections[k][i].innerHTML.indexOf('DIV') == -1) { for ( var n = 0; n < oldWordsDates.length; ++n ) { var indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]) while (indx != -1) { var replacement = ''; indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]); replacement = collections[k][i].innerHTML.replace(oldWordsDates[n], newWordsDates[n]); collections[k][i].innerHTML = replacement; break; } } } } } } replaceWordsDates(); // |