# Userscript for showing character count

(this is basically just a simplified version of this)

I have created a simple userscript that shows a small tab above every code block that tells you its character count. I posted it on Stack Apps, but I thought I would also post it here so people from codegolf.SE will see it.
https://stackapps.com/q/4342/17430

Example:

• Er...was the code from meta.codegolf.stackexchange.com/questions/170/… not working, or does your do something better or different? Not that having two choices is a bad thing or anything. Sep 25 '13 at 21:37
• @dmckee No, it's just a simplified version. This one's very small (less than 400 bytes) and simple.
– Doorknob Mod
Sep 25 '13 at 22:29
• @dmckee One advantage I can see for this is that it seems to show the character count of every code block rather than just the first in every answer. Sep 26 '13 at 11:16
• It would be best practice to not trash any previous window.onload. And it would be nice for userscript novices such as myself to see a comment explaining why you go through the rigmarole of injecting a string to be evaled. Sep 26 '13 at 13:31
• Also, check out codegolf.stackexchange.com/a/12324/194 . Pretty-printing causes problems. Sep 26 '13 at 14:04
• @Peter I fixed the pretty printing issue by using \$(this).text(). I'll add an explanation once I have access to a computer
– Doorknob Mod
Sep 26 '13 at 16:14