|
It works the same like the board mod here on inspire, with cookies and all. My coding style is totally different from normal on this code and I don't really like it :P So I called this the Weird board mod :). Previews: weirdboard.conforums.com/index.cgiuser = test password = test ALL FOOTERS <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> Red PartThis is the name of the poll icon Click the image and check the last part of the url "poll_icon.gif". That's what i mean with the name of the poll icon
Last Edit: Jun 30, 2006 21:13:28 GMT by Chris
|
|
|