<!--- code by cychoi --->
<!--- get code from kkx3.com --->
<script>
/***********************************************\
* A xanga widget to Change all posts(excluding protected posts) to private posts. *
* It takes some time to finish if you got load of posts. *
* Options: *
* 1 --> Private all posts(exclude protected posts); *
* 2 --> Public all posts(exclude protected posts); *
* 3 --> DO NOT run the script *
* cychoi(07/04/2006) *
\***********************************************/
// 1 代表 private晒所有日記, 2 代表顯示所有日記, 3 代運行呢段code
Options = 1;
/*(((( *Do NOT edit beyond this line* ))))*/
var kurl = document.URL.toLowerCase(), key;
Options==1?key="Public":Options==2?key="Private":false;
if(kurl.indexOf("/private/") > 0 && Options != 3) {
var kkx3 = document.getElementsByTagName("A");
for(var i=0; i<kkx3.length; i++) {
if(kkx3.href.indexOf("entryprivacy.aspx") > 0 && kkx3.innerHTML == key) {
window.location.href = kkx3.href;
break;
} else if(kkx3.href.indexOf("&direction=n") > 0 && kkx3.href.indexOf("nextdate=") > 0) {
window.location.href = kkx3.href;
break;
}
}
}
</script>
<!--- get code from kkx3.com --->
<!--- code by cychoi --->