WordPress.com classic stats

Redirects the new stats page to the classic stats page

2016-12-25 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

ئاپتورى
tPenguinLTG
باھا نومۇرى
0 0 0
نەشرى
2.0.1
قۇرۇلغان ۋاقتى
2015-03-16
يېڭىلانغان ۋاقتى
2016-12-25
Size
2.2 KB
ئىجازەتنامىسى
MPLv2.0
قوللايدىغىنى

wpcom-stats-redirect.user.js

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.

Installation

If you don't already have one, install a browser extension that allows you to run user scripts. Then, visit the URL below:

https://github.com/tpenguinltg/wpcom-stats-redirect.user.js/raw/master/wpcom-stats-redirect.user.js

Also on Greasy Fork.

Known Issues

  • The new interface may start loading and appear before the redirect occurs
  • The redirection will likely fail for Jetpack-enabled sites whose site root is different from their installation root

Changelog

  • v1.0.0: Initial release
  • v1.0.1: Fix redirect for private and Jetpack-enabled blogs
  • v1.0.2: "Fix" infinite redirect caused by old stats page being taken down.
  • v2.0.0: Redirect to the classic dashboard stats page instead
  • v2.0.1: Fix regex to match URLs without a stats type.