I'm not sure it's still technically CDATA, but there are values in the page source that JavaScript scripts can easily look up (e.g., wgPageName and wgCanonicalNamespace). It would be helpful to be able to easily look up a user's edit count using a wgEditCount variable. This would help with targeting scripts to more experienced or inexperienced users, for example, without needing a separate API call.
I'm not sure what the behavior should be for logged out users. I think wgEditCount = 0 makes the most sense, though maybe there are better alternatives.
Version: unspecified
Severity: enhancement