|
Post by tunescool on Jan 8, 2010 4:15:12 GMT -8
i finally found a remove pms from info center and remove 10 most recent posts that works but last updated board needs to be moved up
<script type='text/javascript'> /* Last Updated board in Info Center Created by CrAzY_J Do not redistribute this code without the creator's permission*/
var Cells = document.body.getElementsByTagName('td'); if( this.location.href.match(/\.com(\/(index\.cgi(#\w+|\?(action=home)?)?)?)?$/) ) { var Pattern = /^Total\sTopics:/; for( var c = Cells.length-1 ; c > 0 ; c -- ) { if( Cells[c].width == '60%' && Pattern.test( Cells[c].firstChild.firstChild.data ) && Cells[c].getElementsByTagName('a')[0] ) { var Board = Cells[c].getElementsByTagName('a')[0].href.split(/board=/)[1].split(/&/)[0]; Cells[c].id = 'starcraft_pwns'; } if( Cells[c].width == '66%' && Cells[c].getElementsByTagName('a')[0].href.match( new RegExp('board='+Board+'$','') ) ) { var BoardLink = Cells[c].getElementsByTagName('a')[0].href var BoardName = document.createTextNode( Cells[c].getElementsByTagName('a')[0].firstChild.firstChild.data ); break; } } var GetS = document.getElementById('starcraft_pwns').firstChild; var Link = document.createElement('a'); Link.href = BoardLink;
Link.appendChild( BoardName ); GetS.appendChild( document.createElement('br') ); GetS.appendChild( document.createTextNode('Last Updated Board: ') ); GetS.appendChild( Link ); } </script>
|
|
|
Post by Wormopolis on Jan 8, 2010 9:16:59 GMT -8
delete the line:
GetS.appendChild( document.createElement('br') );
|
|
|
Post by tunescool on Jan 8, 2010 9:38:43 GMT -8
thanks
|
|