5
\$\begingroup\$

(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:

screenshot

\$\endgroup\$
6
  • \$\begingroup\$ 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. \$\endgroup\$ Sep 25 '13 at 21:37
  • \$\begingroup\$ @dmckee No, it's just a simplified version. This one's very small (less than 400 bytes) and simple. \$\endgroup\$
    – Doorknob Mod
    Sep 25 '13 at 22:29
  • \$\begingroup\$ @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. \$\endgroup\$
    – Gareth
    Sep 26 '13 at 11:16
  • \$\begingroup\$ 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. \$\endgroup\$ Sep 26 '13 at 13:31
  • \$\begingroup\$ Also, check out codegolf.stackexchange.com/a/12324/194 . Pretty-printing causes problems. \$\endgroup\$ Sep 26 '13 at 14:04
  • \$\begingroup\$ @Peter I fixed the pretty printing issue by using $(this).text(). I'll add an explanation once I have access to a computer \$\endgroup\$
    – Doorknob Mod
    Sep 26 '13 at 16:14

You must log in to answer this question.

Browse other questions tagged .