//-Site Description.
document.writeln("We put the fun in dysfunctional.")
//-HTML Stuffs.
//----------Skin Changer----------
//- Read Cookie Function.
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=");
if (c_start!=-1)
{
c_start=c_start + c_name.length+1;
c_end=document.cookie.indexOf(";",c_start);
if (c_end==-1) c_end=document.cookie.length;
return unescape(document.cookie.substring(c_start,c_end));
}
}
return "";
}
//- Write Cookie Function.
function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
//- Skin Selection Stuff [WIP]
skin=getCookie('skin');
if (skin=="")
{
setCookie('skin',0,365);
}
else if (skin=="0")
{
// document.write('');
document.write(' ');
}
else if (skin=="1")
{
//document.write('');
document.write('
Your currently selected skin is: '+skin+'!
');
}
else if (skin=="2")
{
//document.write('');
document.write('
Your currently selected skin is: '+skin+'!
');
}
else if (skin=="3")
{
//document.write('');
document.write('
Your currently selected skin is: '+skin+'!
');
}
else
{
document.write('');
}
//-----------End Skin Changer----------
//---------- Word Filter -----------
// Don't mess about with this. Working on something here...
// Or was, rather. Doesn't work the way I want it to... But, eh... still good for something.
// Btw, it affects Usernames too, so you can change a username while you change a username.
// ... Yeah, that makes no sense. Anyway, it's just cosmetic, so... yeah. XD
//----------------------------
// Main Coding, don't mess with it...
//-----------------------------
if (document.documentElement && document.documentElement.childNodes)
window.onload = function() {
var tn = [], grabTextNodes = function(n) {
for (var i = n.length - 1; i > -1; --i)
if (n[i].nodeName != '#text' && n[i].childNodes)
grabTextNodes(n[i].childNodes);
else
tn[tn.length] = n[i];
}, replacements = {
//--
// And here we go, the list of things we want to replace. Think SotD quote list, just there's a colon in between the two quotes.
//--
"Laura Luo": "----- ---",
//--
// End of list~! Below here = moar coding, so don't mess with it.
//--
"Not a word filter": "Ignore this."
}, regex = {};
grabTextNodes(document.body.childNodes);
for (var key in replacements) {
regex[key] = new RegExp(key, 'g');
for (var i = tn.length - 1; i > -1; --i)
tn[i].nodeValue = tn[i].nodeValue.replace(regex[key], replacements[key]);
};
};
//--
// End of Script
// --
//---------- End of Word Filter ----------