Log In · Register

 
private blogging, why doesn't this code work?
simplyxparadise
post Oct 2 2004, 09:51 PM
Post #1


^-^
***

Group: Member
Posts: 69
Joined: Aug 2004
Member No: 40,106



why doesn't this work for my xanga? T_T
CODE
<!-- begin code provided by createblog.com -->
<script>

// Private Blogging
// By Paul Chen
//  --- Coyote
// Put your list of (exact) names here.
// Make sure they are all lowercase.
// "join" = unregistered viewers
// Go to end of the script and change
// the custom alert message.

var allowed = new Array(
"bin_sleeping90",
"l0stinlife___x",
"huyana_goddess",
"j1s62091",
"x_flipflops",
"loufa",
"soccer_babie",
"x__forgiveness__x",
"yunhe",
"chilin_lee",
"demomode",
"lilazncutie",
"x_br0kenxheart",
"may18th",
"sweetchick28",
"x_breathless_o",
"keep0nfallin",
"yayleexp",
"peach_kisses13",
"imyourfriend69",
"mildly_humorous",
"mizz_sarita",
"xoaquariusstarox",
"garnetmuse",
"aloneinmyworld",
"xxbballgurl91xx",
"sweet_x_tragedy",
"mizz_evy_x3",
"f4_luv_89",
"sugaryspice1004",
"drama_mistress",
"right_hand_redx",
"katherinekck",
"waterygem",
"puremin73",
"chromefang",
"peachiemonkey",
"lycheelamb",
"xfantastical"
)

var links = document.getElementsByTagName('a');
name="";

for(i=0;i<links.length;i++)
{
if(links[i].innerText.match(/xanga/i) && links[i+2].innerText.match(/sign out/i)){
i++;
if(links[i].href.match('/private/home.aspx') || links[i].innerText.match('join')){
 name = links[i].innerText.toLowerCase();
 break;
}  
}
}
enter=false;

for(j=0;j<allowed.length;j++)
{
users = allowed[j];
if(users.indexOf(name)==0 && users.length==name.length){
enter=true;
break;
}
}

if(enter!=true){
alert('the reason why you cannot view my xanga is probably because you are not signed in. so go sign in. if it still doesn't work, IM me.'); //change the message
history.go(-1);
}
</script>
<!-- end code provided by createblog.com -->


if you can find something wrong with it, please tell me!~
 

Posts in this topic


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