|
all
Feb 15, 2012 0:44:25 GMT -4
Post by MonsterControl on Feb 15, 2012 0:44:25 GMT -4
<style type="text/css"> .on{background: #ce0203;} .off{background: #e0dfdf;} .windowbg3{background-color: #f5f5f5;} .nameHold{border-bottom: dotted 1px #000000; border-left: solid 8px #f5f5f5;}
.on{ width: 8px!important; height: 40px; position: relative; float: left; } .off{ width: 8px!important; height: 40px; position: relative; float: left; } .nameHold{ padding-bottom: 1px; width: 450px; } .modDisplay i{ font-style: normal!important; font-size: 9px; } </style>
<script type="text/javascript"> <!-- /* On/Off-less Board Mod Samus - Do whatever to it, just don't claim it as yours Slightly Insane - [url]smangii.proboards.com[/url] */
var that = { get: function(){ if(arguments[1]){ return document.getElementsByTagName(arguments[0]); }else{ return document.getElementById(arguments[0]); } }, text: function(){ var f = document.createElement('font'); f.appendChild(document.createTextNode(arguments[0])); if(arguments[1]){ f.setAttribute('size',arguments[1]); } return f; } }; var sC = that.get('td','a'); var rEBr = { barChange: function(){ if(/board=/i.test(location.href) || document.all && !window.opera){ if(/^titlebg$/i.test(sC[a].className) && /^(Forum\sName|Sub-Board(s)?)/i.test(sC[a].firstChild.firstChild.firstChild.data)){ sC[a].setAttribute('align','left'); sC[a].removeAttribute('colSpan'); sC[a+1].appendChild(that.text('Statistics','11')); sC[a+1].firstChild.style.display = sC[a+2].style.display = sC[a+3].style.display = 'none'; } } }, boardChange: function(){ if(/66%/i.test(sC[a].width) && /windowbg/i.test(sC[a].className)){ sC[a-1].className = 'windowbg3'; sC[a-1].setAttribute('width','70%'); var oClass = (/on/i.test(sC[a-1].getElementsByTagName('img')[0].src)) ? 'on' : 'off'; sC[a-1].replaceChild(document.createElement('div'),sC[a-1].firstChild); sC[a-1].firstChild.className = oClass; sC[a-1].removeAttribute('align'); var newS = document.createElement('span'); newS.className = 'newS'; newS.appendChild(document.createElement('div')); newS.lastChild.className = 'nameHold'; newS.lastChild.appendChild(sC[a].firstChild.getElementsByTagName('a')[0]); newS.appendChild(sC[a].getElementsByTagName('font')[1].firstChild); if(sC[a].lastChild.getElementsByTagName('i')[0]){ newS.appendChild(document.createElement('br')); newS.appendChild(document.createElement('font')); newS.lastChild.className = 'modDisplay'; newS.lastChild.appendChild(sC[a].lastChild.getElementsByTagName('i')[0]); } sC[a-1].appendChild(newS); if(/on\s(.+?)<br\s?\/?>\s?by\s(.+?)<br/i.test(sC[a+3].firstChild.innerHTML)){ var newF = document.createElement('font'); newF.appendChild(that.text('Latest Post by: ')); var meh = (!/board=/i.test(sC[a+3].firstChild.getElementsByTagName('a')[0].href)) ? sC[a+3].firstChild.getElementsByTagName('a')[0] : that.text('RegExp.$2'); newF.appendChild(meh); newF.appendChild(document.createElement('br')); newF.appendChild(that.text('In: ')); newF.appendChild(sC[a+3].getElementsByTagName('a')[0]); newF.appendChild(that.text(' ('+RegExp.$1.replace(/<\/?b>/gi,'')+')')); newF.appendChild(document.createElement('br')); newF.appendChild(that.text('Posts:')); newF.appendChild(document.createElement('span')); newF.lastChild.className = 'redb'; newF.lastChild.appendChild(sC[a+2].firstChild.firstChild); newF.appendChild(that.text(' ')); newF.appendChild(document.createElement('img')); newF.lastChild.setAttribute('src','http://i98.photobucket.com/albums/l258/Jedi_Master_Sam/Banquet/divider.gif'); newF.lastChild.setAttribute('align','texttop'); newF.appendChild(that.text(' Threads:')); newF.appendChild(document.createElement('span')); newF.lastChild.className = 'redb'; newF.lastChild.appendChild(sC[a+1].firstChild.firstChild); newF.className = 'newF'; sC[a].replaceChild(newF,sC[a].firstChild); sC[a].setAttribute('align','center'); sC[a].removeAttribute('style'); sC[a].removeAttribute('onclick'); sC[a].removeAttribute('onmouseover'); sC[a].removeAttribute('onmouseout'); sC[a].removeChild(sC[a].lastChild); } sC[a+1].style.display = sC[a+2].style.display = sC[a+3].style.display = 'none'; } } }; if(!location.href.match(/action=(?!home)|board=/)){ for(a=0;a<sC.length;a++){ rEBr.boardChange(); rEBr.barChange(); } }; //--> </script>
<script type='text/Javascript'> <!-- // Simple Category Splitter - Dregond Rahl
var catSpacing = "5px";
var table = document.getElementsByTagName('table'); var div = document.createElement('div'); var divA = document.createElement('div'); divA.style.height = catSpacing ;
if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){ for(i = 0; i < table.length; i ++){ if(table[i].cellPadding =='4' && table[i-1].className =='bordercolor' && table[i].rows[0].cells[0].firstChild.innerHTML.match(/Forum\sName/i)){ for(r = 1; r < table[i].rows.length; r ++){
if(table[i].rows[r].getElementsByTagName('a')[0].name){
var divH = document.createElement('div'); var divB = document.createElement('div'); divH.className = 'cathead'; divB.className = 'catbase';
var tab = document.createElement('table'); tab.className = 'bordercolor'; tab.width = '100%'; tab.cellPadding = '4'; tab.cellSpacing = '1'; tab.align ='center'; tab.appendChild(document.createElement('tbody')); var edit = table[i].rows[0].cloneNode(true); edit.cells[0].removeAttribute('colSpan'); edit.cells[1].removeChild(edit.cells[1].firstChild); edit.cells[1].appendChild(that.text('Statistics')); edit.cells[2].style.display = edit.cells[3].style.display = 'none'; tab.firstChild.appendChild(edit);
var cat = table[i].rows[r].cells[0].lastChild; var title = tab.rows[0].cells[0].firstChild.firstChild; title.parentNode.replaceChild(cat, title);
div.appendChild(divA.cloneNode(true)); div.appendChild(divH); div.appendChild(tab); div.appendChild(divB);
} else if(table[i].rows[r].cells[4]){ tab.lastChild.appendChild(table[i].rows[r]); r--; } }
table[i-1].parentNode.replaceChild(div, table[i-1]); break; } } }
//--> </script>
Read more: http://smangii.proboards.com/index.cgi?board=pbsupport&action=display&thread=10250#ixzz1mQFwAGu5
<script type='text/javascript'> table = document.getElementsByTagName('table'); for(t=0; t<table.length; t++) { if(table[t].width=='92%') { table[t].width='99%'; } } var table = document.getElementsByTagName('table'); if(location.href.match(/action=(display|recent|pmview|search2)/i)){ for(i=0;i<table.length;i++){ if(table[i].className=='code'){ var codeArea = table[i].firstChild.firstChild.firstChild.firstChild.innerHTML; codeArea = codeArea.replace(/&nb+sp;/gi,' '); codeArea = codeArea.replace(/&a+mp;/gi,'&'); codeArea = codeArea.replace(/\t/gi,'&nb+sp;&nb+sp; ') codeArea = codeArea.replace(/<br\s?\/?>/gi,'\n'); table[i].parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML = "<table><tr><td><center><form><textarea class='codeArea' style='font-size: 9pt;' name='codeArea' cols='80' rows='20'>"+codeArea+"</textarea><br><input type='reset' value='Reset'><input type='button' value='Highlight Code' onclick='javascript:this.form.codeArea.focus();this.form.codeArea.select();'></form></center></td></tr></table>"; i--; } } } </script>
|
|