Adds a stats sparkline to the WordPress.com admin bar
As of 2016-12-27. See the latest version.
These are versions of this script where the code was updated. Show all versions.
Restore sparkline for September 2025
The element "#wp-admin-bar-blog a.ab-item" no longer exists, so the stats URL must be constructed from something else.
On normal blog pages, the script assumes that there is a site name anchor where "/home/" can be replaced with "/stats/" to get a valid stats URL.
On wp-admin pages, the URL for the Stats side nav item is used directly.
Bump to version 1.2.0
Also update copyright year to 2025.