Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Jun 13, 2006 16:21:01 GMT -5
Created By: Aaron Creator's Comments: Description: This code reverses the topic summary so posts are listed from newest to oldest.
Cross-browser: Yes
Editting: None
Global Footer
<script type="text/javascript"> <!-- // Newest to Oldest in Topic Summary
var gCell = document.getElementsByTagName("td"); if(self.location.href.match(/action=(modify)?post/i)) { for(var i = gCell.length - 1; i > 0; i --) { if(gCell.item(i).width == "100%" && gCell.item(i).className.match(/windowbg/) && gCell.item(i).parentNode.name != "separater" && gCell.item(i).parentNode.previousSibling.firstChild.firstChild.size == "2" && gCell.item(i).parentNode.previousSibling.firstChild.firstChild.firstChild.nodeValue == "Posted by ") { var obtainBody = gCell.item(i).parentNode.parentNode; var obtainPostInt = gCell.item(i).parentNode.previousSibling.cloneNode(true); var obtainMessage = gCell.item(i).parentNode.cloneNode(true); obtainMessage.name = "separater"; obtainBody.appendChild(obtainPostInt) obtainBody.appendChild(obtainMessage); gCell.item(i).parentNode.style.display = (gCell.item(i).parentNode.name != "separater") ? "none" : ""; gCell.item(i).parentNode.previousSibling.style.display = (gCell.item(i).parentNode.name != "separater") ? "none" : ""; } } } //--> </script>
|
|