|
Viewing Single Post From: [CODE] Remove Portal
|
|
Izzet
|
Aug 16 2005, 05:13 AM
|
- Posts:
- 69
- Group:
- Members
- Member
- #58,552
- Joined:
- June 22, 2005
|
- jawa456
- April 7, 2005 12:03 AM
I took 2 of the codes on this topic and combined them so they aren't mine. It is so the codes works for everyone viewing the forum. Use this: (It works for every browser, mostly) PUT IT IN "Footer".- Code:
-
<script language=javascript> <!-- function change(item,item2) { var range = document.body.createTextRange(); range.collapse(true); if (location.href.indexOf("action=") != -1 ) { return false; } else { while (range.findText(item)) { range.text=item2; range.collapse(false); } } }
change("· Portal","");
// --> </script> <script type='text/javascript'> <!-- // remove portal link // code by Stefan
e = document.getElementById('submenu') if (e && e.tagName == 'TABLE') { e = e.rows[0].cells[0].getElementsByTagName('A') for(n = 0; n < e.length && !e[n].href.match(/act=site/); n++); if (e[n]){ pnt = e[n].parentNode; for (nod = e[n].previousSibling; nod && nod.tagName != 'A'; nod = nod.previousSibling); for (;nod.nextSibling && nod.nextSibling.tagName != 'A'; pnt.removeChild(nod.nextSibling)); pnt.removeChild(nod.nextSibling) }}
// --> </script>
Thanks mate, this code actually worked for me unlike the previous ones.
|
|
|