Greasy Fork
ログイン
Bokmål (nb)
Romanian (ro)
アラビア語 (ar)
イタリア語 (it)
インドネシア語 (id)
ウイグル語 (ug)
ウクライナ語 (uk)
エスペラント語 (eo)
オランダ語 (nl)
ギリシア語 (el)
グルジア語 (ka)
クロアチア語 (hr)
スウェーデン語 (sv)
スペイン語 (es)
スペイン語 (es-419)
スロヴァキア語 (sk)
セルビア語 (sr)
タイ語 (th)
チェコ語 (cs)
デンマーク語 (da)
ドイツ語 (de)
トルコ語 (tr)
ハンガリー語 (hu)
フィン語 (fi)
フランス語 (fr)
フランス語 (カナダ) (fr-CA)
ブルガリア語 (bg)
ベトナム語 (vi)
ヘブライ語 (he)
ポーランド語 (pl)
ポルトガル語 (ブラジル) (pt-BR)
マラーティー語 (mr)
ロシア語 (ru)
英語 (en)
中国語 (台湾) (zh-TW)
中国語 (中国) (zh-CN)
朝鮮語 (ko)
日本語 (ja)
白ロシア語 (be)
کوردیی ناوەندی (ckb)
Help us translate!
スクリプト
掲示板
ヘルプ
その他
拡張検索
ユーザー一覧
ライブラリ
管理担当者による対処の履歴
☰
スクリプト
掲示板
ヘルプ
拡張検索
ユーザー一覧
ライブラリ
管理担当者による対処の履歴
ログイン
Bokmål (nb)
Romanian (ro)
アラビア語 (ar)
イタリア語 (it)
インドネシア語 (id)
ウイグル語 (ug)
ウクライナ語 (uk)
エスペラント語 (eo)
オランダ語 (nl)
ギリシア語 (el)
グルジア語 (ka)
クロアチア語 (hr)
スウェーデン語 (sv)
スペイン語 (es)
スペイン語 (es-419)
スロヴァキア語 (sk)
セルビア語 (sr)
タイ語 (th)
チェコ語 (cs)
デンマーク語 (da)
ドイツ語 (de)
トルコ語 (tr)
ハンガリー語 (hu)
フィン語 (fi)
フランス語 (fr)
フランス語 (カナダ) (fr-CA)
ブルガリア語 (bg)
ベトナム語 (vi)
ヘブライ語 (he)
ポーランド語 (pl)
ポルトガル語 (ブラジル) (pt-BR)
マラーティー語 (mr)
ロシア語 (ru)
英語 (en)
中国語 (台湾) (zh-TW)
中国語 (中国) (zh-CN)
朝鮮語 (ko)
日本語 (ja)
白ロシア語 (be)
کوردیی ناوەندی (ckb)
Help us translate!
情報
コード
履歴
フィードバック (1)
統計
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