inherit
109382
0
Jan 6, 2019 9:03:49 GMT -8
uzi
1,756
August 2007
uzi
|
Post by uzi on Aug 26, 2011 21:47:36 GMT -8
Code Name: New PMs in Page Title Author: Devin Froseth <script type="text/javascript"> /** * New PMs in Page Title * Written by Devin Froseth */
if ( boardTitle = document.title.split(" - ")[0] ) { var td = document.getElementsByTagName("td");
if ( td[2].innerHTML.match(/,\s(\d+)\s(is|are)\snew\./i) ) { if ( RegExp.$1 != 0 ) document.title = document.title.replace(boardTitle, boardTitle + " (" + RegExp.$1 + ") "); } } </script> Place the code in the global headers, above any codes that modify the welcome table. Nothing needs to be edited. PreviewThis code is based off of how Facebook's notifications are displayed. The number of new PMs are displayed if there are any - if there are 0, nothing is changed.
|
|