|
Post by Bradley on Feb 2, 2006 20:44:23 GMT -5
This will remove the back to top link and/or the link to post link. This will not interfere with the Report to Admin code.
Global Footers
<script type="text/javascript"> if(location.href.match(/on=(displ|search2|viewpr|pmv|(user)?rece|cal\w+iew)/)){ var links = document.getElementsByTagName("a"); for (i=0; i<links.length; i++){ if (links.item(i).href.match(/\#/) && links.item(i).innerHTML.match(/(back to top|link to post)/i)){ links.item(i).style.display = "none"; if (links.item(i).previousSibling && links.item(i).previousSibling.data.match(/\-/)) { links.item(i).previousSibling.data = "";} links.item(i).nextSibling.data = "";}}} </script>
If you only want to remove the back to top link change the red part to this:
back to top
No parenthees.
If you only want to remove the link to post link change the red part to this:
link to post
No parenthees.
|
|