|
Post by CrAzY_J on Oct 10, 2005 11:40:39 GMT -8
Preview: Click ThisTest Account = test Test Password = test Code modifications: You may edit the red part of the code, this is the name of the "poll" icon you use. The one in there is the default poll icon name of Suddenlaunch. <script type="text/javascript"> /*Some Weird Board Mod Created by CrAzY_J Do not redistribute or repost this code anywhere*/
var Poll = /poll_icon.gif/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(/<br>/gi,' ') Ntable+="<tr><td class='windowbg2' align='center'>"+TR[tr].cells[0].innerHTML+" "+TR[tr].cells[1].innerHTML; if(TR[tr+1]){ if(TR[tr+1].cells[0].innerHTML.match(Poll)) Ntable+=" "+TR[tr+1].cells[0].innerHTML; } Ntable+="<br />"+TR[tr].cells[2].innerHTML+"<br /><b>Thread Creator</b>: "+TR[tr].cells[3].innerHTML+" <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>
|
|