Right now it’s not as pretty as it could be, since I had to copy the whole function to form the link text out of the remote script, but I assume I can talk Hossein into splitting the yaccs() function in two, so that yaccs() calls yaccs_link_text(). Then all you have to keep outside the remote script is the commentcount() function, with a section to define your pre- and post-count text, so that the line that sets oSpanText.nodeValue can call yaccs_link_text() with your custom text.
Testing would be welcome, especially on OSes other than Windows. It works the way I expect on IE6/Win and Mozilla/Win, and fails the way I expect (no counts) in Opera 6/Win and NS4.79/Win. I presume it should work in IE5/Win, IE5/Mac, and NS6/Mozilla on all OSes, and fail to count but otherwise work in everything else. If not, let me know, before I talk Hossein into releasing it on an unsuspecting public.
Oddly enough, NS4.79/Win didn’t fail the way I expected on the failure test page. I was expecting it to redirect to a 404 page, but instead it just loaded the page without counts. Maybe they fixed that silly behavior of redirecting on 404ed scripts in 4.79. Anyone have an older 4.x version around?(Oops. My mistake. Now it breaks the way it should.)