Redirects the new stats page to the classic stats page
WordPress.com is trying to push its new interfaces, including the new stats page. This user script forces a redirect to the classic dashboard stats page when the new stats page is visited.
This script is based on wpcom-edit-post-redirect.user.js.
If you don't already have one, install a browser extension that allows you to run user scripts. Then, install the script from Greasy Fork.
Alternatively, visit the URL below:
The tests are written with the Mocha testing framework and run in a Node.js environment.
Functions are stubbed using Sinon and assertions are made using Chai (TDD style).
To run the tests once, run npm run test.
npm run test
To run the tests continuously while developing, run npm run test-dev.
npm run test-dev