On Mon, Aug 4, 2008 at 5:50 AM, Magnus Manske magnusmanske@googlemail.com wrote:
No matter, found one. http://en.wikipedia.org/wiki/User:Magnus_Manske/templates_only_talk.js
Will display a talk link for main namespace as "new" if the talk page only contains templates.
I believe this will fail if the client's connection is slow enough since you don't handle onreadystatechange, but instead jump right into handling the response (which may not be available that soon).