|
Post by MonsterControl on Jan 27, 2012 19:12:21 GMT -4
<script type="text/Javascript"> // Make View Thread Look Similar to Topic Summary by Chris // Do not redistribute without permission of the creator
// For the options below, 1 = true/yes and 0 = false/no var removeHRS = 1; // Whether or not to remove the HR lines above/below the post var removeLTP = 0; // Whether or not to remove the "Link to Post" stuff. This also includes the last edit var removeSig = 0; // Whether or not to remove the signature
// Don't edit if(location.href.match(/action=display/) || (document.postForm && document.title.match(/Preview/))){ var aTD = document.getElementsByTagName("td"); for(a=0;a<aTD.length;a++){ if(aTD[a].width == "20%" && aTD[a].className.match(/windowbg2?/) && aTD[a].innerHTML.match(/Posts:|Guest/)){ var name = aTD[a].innerHTML.split(/<br/i)[0]; aTD[a].style.display = "none"; aTD[a+1].colSpan = 2; if(removeHRS){ aTD[a+1].getElementsByTagName("hr")[0].style.display = "none"; } if(removeLTP){ aTD[a+1].lastChild.firstChild.lastChild.firstChild.firstChild.style.display = "none"; } if(removeSig){ aTD[a+1].lastChild.firstChild.lastChild.firstChild.lastChild.style.display = "none"; } aTD[a+2].style.display = "none"; aTD[a+3].innerHTML = aTD[a+3].innerHTML.replace(/<\/b>/i, "</b> by "+name).replace(/<br\s?\/?>/i, "&nb"+"sp;&nb"+"sp;&nb"+"sp;&nb"+"sp;"); } else if(aTD[a].width == "20%" && aTD[a].innerHTML.match(/Author/i)){ aTD[a].parentNode.style.display = "none"; } } } </script>
|
|
|
Post by MonsterControl on Jan 27, 2012 19:15:17 GMT -4
<script> // Extra Topic Icons by CD // Do not redistribute without permission of the creator
newIcons = [ ["Name","Pic"], ["Testing","http://www.proboards8.com/v4images/menu/logout.gif"] ];
// No need to edit var aTD = document.getElementsByTagName("TD"); var aFO = document.getElementsByTagName("FONT"); var aAH = document.getElementsByTagName("A"); if(document.postForm && document.postForm.icon){ var pf = document.postForm.icon; document.postForm.subject.maxLength = 45;
for(a=0;a<newIcons.length;a++){ var newOp = new Option(); newOp.value = "ETI-"+a; newOp.innerHTML = newIcons[a][0]; pf.appendChild(newOp); }
if(document.postForm.subject.value.match(/\/:(\d+):$/i)){ pf.selectedIndex = 12+parseInt(RegExp.$1); document.images.iconImage.src = newIcons[parseInt(RegExp.$1)][1]; document.postForm.subject.value = document.postForm.subject.value.split(/\/:\d+:$/i)[0]; }
pf.onkeyup = function(){ changeIt(); } pf.onchange = function(){ changeIt(); }
if(!document.all) document.postForm.setAttribute("onSubmit","disable(this); document.postForm.subject.maxLength = 50; if(pf.options[pf.selectedIndex].value.match(/ETI/i)){ document.postForm.subject.value += '/:'+pf.options[pf.selectedIndex].value.split('ETI-')[1]+':'; pf.options[pf.selectedIndex].value = 'xx';}"); else document.postForm.onsubmit = function(){ disable(this); document.postForm.subject.maxLength = 50; if(pf.options[pf.selectedIndex].value.match(/ETI/i)){ document.postForm.subject.value += '/:'+pf.options[pf.selectedIndex].value.split('ETI-')[1]+':'; pf.options[pf.selectedIndex].value = 'xx'; } };
} else if(location.href.match(/board=/i) && !location.href.match(/action=/i)){ for(a=4;a<aTD.length;a++){ if(aTD[a].width == "48%" && aTD[a].innerHTML.match(/\/:(\d+):/i)){ if(document.getElementsByTagName("IMG").length > 1) aTD[a-2].getElementsByTagName("IMG")[0].src = newIcons[parseInt(RegExp.$1)][1];
aTD[a].innerHTML = aTD[a].innerHTML.replace(/\/:\d+:/i,""); } else if(aTD[a].width == "24%" && aTD[a].innerHTML.match(/\/:\d+:/i)){ aTD[a].innerHTML = aTD[a].innerHTML.replace(/\/:\d+:/i,""); } } } else if(location.href.match(/action=display/i)){ for(a=4;a<aTD.length;a++){ if(aTD[a].width == "80%" && aTD[a].innerHTML.match(/\/:(\d+)/i)){ if(aTD[a].getElementsByTagName("IMG")[0]) aTD[a].getElementsByTagName("IMG")[0].src = newIcons[parseInt(RegExp.$1)][1];
aTD[a].innerHTML = aTD[a].innerHTML.replace(/\/:\d+:/i,""); } } document.title = document.title.replace(/\/:\d+:$/i,""); aFO[1].innerHTML = aFO[1].innerHTML.replace(/\/:\d+:/i,""); for(a=9;a<aAH.length;a++){ if(aAH[a].className == "nav" && aAH[a].nextSibling && aAH[a].nextSibling.nodeType == 3) aAH[a].nextSibling.data = aAH[a].nextSibling.data.replace(/\/:\d+:/,""); } } else if(location.href.match(/action=home/i) || !location.href.match(/action=/i)){ for(a=9;a<aAH.length;a++){ if(aAH[a].innerHTML.match(/\/:\d+:/i)){ aAH[a].innerHTML = aAH[a].innerHTML.replace(/\/:\d+:/i,""); } } }
function changeIt(){ if(pf.options[pf.selectedIndex].value.match(/ETI-(\d+)$/i)) document.images.iconImage.src = newIcons[parseInt(RegExp.$1)][1]; else document.images.iconImage.src = "http://www.proboards8.com/v4images/"+ pf.options[pf.selectedIndex].value+".gif"; } </script>
|
|
|
Post by MonsterControl on Jan 27, 2012 19:26:51 GMT -4
<script type="text/Javascript"> // Move Miniprofile to Right Side by Chris // Do not redistribute without permission of the creator
if(location.href.match(/action=(display|(calendar|pm)?view)/) || document.title.match(/\s-\s(Search|Preview)/i)){ var aTD = document.getElementsByTagName("td"); for(a=6;a<aTD.length;a++){ if(aTD[a].width == "20%" && aTD[a].align == "left" && !aTD[a].innerHTML.match(/<input/)){ aTD[a].parentNode.appendChild(aTD[a]); } } } </script>
|
|