Post by crazynarutard on Dec 1, 2005 0:02:31 GMT
PBV3
Main footers
Main footers
<script type="text/javascript">
/*Some Weird Board Mod
Created by CrAzY_J
Do not redistribute or repost this code anywhere*/
var Poll = /[color=red]poll_icon.gif[/color]/i;
function ccookie(name,value){
var da = new Date();
da = da.toGMTString();
document.cookie=name+"="+value+";expires="+da.replace(/\d{4}/i,"2050");
}
function dwcookie(name){
ccookie(name,'',-1);
alert('cookie deleted')
location.href='/index.cgi?'
}
function dcookie(name){
ccookie(name,'',-1);
}
function xcookie(name){
var cookie=document.cookie.split(name+'=')[1].split(';')[0];
return (cookie=='yes')? true:false;
}
var TB = document.getElementsByTagName( "table" );
var Ntable = "<table cellpadding='4' cellspacing='1' border='0' width='100%' align='center'>"
if(location.href.match(/board=\w+$/)){
if(xcookie('specialcheck')){
for(tb=0;tb<TB.length;tb++){
if(TB[tb].width=="100%"&&TB[tb].cellPadding=="4"&&TB[tb].rows[0].cells[1]){
if(TB[tb].rows[0].cells[1].innerHTML.match(/Subject/)){
TB[tb].style.display="none";
var TR = TB[tb].getElementsByTagName( "tr" );
for(tr=1;tr<TR.length;tr++){
if(TR[tr].cells[6]){
TR[tr].cells[6].innerHTML=TR[tr].cells[6].innerHTML.replace(/<b[i]r[/i]>/gi,' ')
Ntable+="<tr><td class='windowbg2' align='center'>"+TR[tr].cells[0].innerHTML+"&n[i]b[/i]sp;"+TR[tr].cells[1].innerHTML;
if(TR[tr+1]){
if(TR[tr+1].cells[0].innerHTML.match(Poll))
Ntable+="&n[i]b[/i]sp;"+TR[tr+1].cells[0].innerHTML;
}
Ntable+="<br />"+TR[tr].cells[2].innerHTML+"<br /><b>Thread Creator</b>: "+TR[tr].cells[3].innerHTML+" &n[i]b[/i]sp;&n[i]b[/i]sp;&n[i]b[/i]sp; <b>Latest Post</b>: "+TR[tr].cells[6].innerHTML+"<br />[ Views: <i>"+TR[tr].cells[5].innerHTML+"</i> | Replies: <i>"+TR[tr].cells[4].innerHTML+"</i> ]</td></tr>"
}}
Ntable+="</table>"
TB[tb].parentNode.innerHTML+=Ntable;
}}
if(TB[tb].cellPadding=="3" && TB[tb].rows[0].cells[0].innerHTML.match(/Pages:/)){
TB[tb].rows[0].cells[0].innerHTML+='<a href="javascript:void(0)" onClick=dwcookie(\"specialcheck\")>Delete Cookie</a>';
}}}}
if(location.href.match(/\.com(\/(index\.cgi((#\w+|\?(action=(logout|login2|home))?))?)?)?$/)){
var TD=document.getElementsByTagName("td");
for(t=0;t<TD.length;t++){
if(TD[t].width=="66%" && TD[t].getElementsByTagName("a")[1]){
TD[t].innerHTML+="<br />[ <a href='"+TD[t].getElementsByTagName("a")[1].href+"' onClick=dcookie(\"specialcheck\")>Normal Mode</a> | <a href='"+TD[t].getElementsByTagName("a")[1].href+"' onClick=ccookie(\"specialcheck\",\"yes\")>Special Mode</a> ]";
}}}
</script>