RosettaCode贡献记录计数器

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

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

作者
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.

QingJ © 2025

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