WordPress.com classic stats

Redirects the new stats page to the classic stats page

这些是代码更新过的版本。 显示所有版本

  • v2.3.0 2017-10-09 Use consistent quotation marks, Bump copyright date, Add tests Tests are written with the Mocha testing framework using Sinon as the stubbing library and Chai as the assertion library., Add entrypoint, Merge branch 'f/tests' into dev, Version bump to v2.3.0
  • v2.2.1 2017-06-23 Use search() instead of contains() String.prototype.contains does not exist. There is String.prototype.includes, but that was introduced in ES2015. To maintain "wide" browser support, the older String.prototype.contains is used instead., Version bump to v2.2.1
  • v2.2.0 2017-06-15 Do not redirect if explicitly requested from=wp-admin is added to the URL if the "Show Me" button is clicked in the wp-admin stats. Since this script is only run on page load and will not affect any AJAX requests made by the React app, one can interact with the new stats normally., Version bump to v2.2.0
  • v2.1.2 2017-02-25 Synced from GitHub - Get user's default blog more reliably The assumption that the user's default blog is first in the list is no longer valid. Make use of the currentUser object available in the environment to get the user's defaut blog. - Version bump to v2.1.2
  • v2.1.1 2017-01-20 Synced from GitHub - Add missing semicolons While not strictly necessary, add the semicolons for consistency. - Ignore /countryviews WordPress.com implemented a country summary page. https://en.forums.wordpress.com/topic/stats-feedback/page/7#post-2845891 - Ignore posts summary page (/posts) Although this page has a counterpart in the classic stats, properly redirecting involves parsing some query parameters (e.g. translating "num" into "numdays"). Just ignore it for now so things don't br...
  • v2.1.0 2016-12-26 Synced from GitHub - Redirect even when there is no blog domain in the URL Scrape the page for the default blog and get the stats link when there is no blog domain in the URL. In the future, this should be handled with an API call.
  • v2.0.1 2016-12-25 Synced from GitHub - Correctly match URLs with no stats type Make the stats type optional. The original reason for not catching that case is that /stats/example.wordpress.com would redirect to /stats/insights/example.wordpress.com, but this appears to be a JavaScript redirect and would not get caught by the script. Additionally, since match returns null when there is no match, treating parsedUrl as an array to extract the stats type and the blog domain will fail.
  • v2.0.0 2016-12-22 Synced from GitHub - Reformat fetchJSONFile for consistency - Redirect to the classic dashboard stats page Since the old stats page is gone with a 301 redirect, redirect instead to the classic dashboard stats page. Credits to Dennis for the idea.
  • v1.0.2 2016-12-22 Synced from GitHub - Disable functionality to prevent infinite redirect WordPress.com has taken down the old stats page and replaced it with a 301 redirect to the new stats page, creating an infinite redirect loop. Until a fix can be made to redirect to the classic stats page, disable the functionality so the infinite redirect does not occur.
  • v1.0.1 2015-03-29 Synced from GitHub - Redirect for private and Jetpack-enabled blogs - Merge branch 'dev'. Bump to v1.0.1
  • v1.0.0 2015-03-16 Synced from GitHub - Add Greasy Fork镜像 links
  • v1.0.0 2015-03-16 Imported from URL

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址