计算 section.mw-pager-body 中特定的 li 元素
当前为
RosettaCode Conribution Records Counter
Recently(2025-06-02), rosettacode has updated its domain name to rosettacode.miraheze.org
As far as I know, Extension Proxy Omega or some tampermonkey script can not resolve url redirecting issue.
To redirect all URLs from rosettacode.org to rosettacode.miraheze.org in Chrome, you can use a Chrome extension since Chrome doesn’t have built-in redirection features. Here’s how to do it:
Redirector extension.Set Up the Redirect Rule:
http://rosettacode.org/wiki/Example.rosettacode.org URLs, e.g.:
^(http|https)://rosettacode\.org/(.*)$
This matches http:// or https:// URLs starting with rosettacode.org and any path.
$1://rosettacode.miraheze.org/$2
Here, $1 keeps the protocol (http or https), and $2 keeps the original path.Save and Test:
rosettacode.org URL (e.g., http://rosettacode.org/wiki/Example).rosettacode.miraheze.org/wiki/Example.