RosettaCode贡献记录计数器

计算 section.mw-pager-body 中特定的 li 元素

当前为 2025-06-02 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
138 Aspen
评分
0 0 0
版本
1.0.2.2
创建于
2024-02-12
更新于
2025-06-02
大小
8.7 KB
许可证
MIT
适用于

RosettaCode Conribution Records Counter


   

Recently, 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.

In the Chrome browser, to redirect all URLs from rosettacode.org to rosettacode.miraheze.org, you can use the Chrome extension because Chrome itself does not have built-in redirection functionality. Here are the specific steps:

Method: Use Chrome extension (such as "Forwarder")

  1. Install the Forwardor extension:
  2. **You should go the GitHub pgae to download Redirector extension.

  3. Configure redirection rules: -After installation is complete, click on the extension icon in the upper right corner of Chrome, select "Forwardor" or enter its settings through the "Extension" menu. -In the Forwarder interface, click on "Create new redirect" or similar options. -Configure the following rules:

  4. Description: Any name, such as "RosettaCode Redirect".

  5. Example URL: Enter an example URL, such ashttp://rosettacode.org/wiki/Example.

  6. Include pattern: Enter a regular expression to match all URLs of 'rosettacode. org', for example:

^(http|https)://rosettacode\.org/(.*)$

This matches the 'rosettacode. org' domain name starting with 'http://' or 'https://' and any path after it. -Rredirect to: Enter the target URL pattern, for example:

$1://rosettacode.miraheze.org/$2

Here, '$1' retains the protocol (http or https), while '$2' retains the original path.

  • Pattern type: Select 'Regular Expression'.
  • Apply to: Check "Main window" and any other applicable options.
  1. Save and Test: -After saving the rule, open a URL for 'rosettacode. org' (e.ghttp://rosettacode.org/wiki/Example). -The browser should automatically redirect to 'rosettacode. miraheze. org/wiki/Example'. -If it does not take effect, check if the regular expression is correct or ensure that the extension is enabled.