Greasy Fork镜像 is available in English.

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.71KB
ライセンス
MIT
対象サイト

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:

Method: Use a Chrome Extension (e.g., Redirector)

  1. Set Up the Redirect Rule:

    • After installation, click the extension icon in Chrome’s toolbar and select “Redirector” or go to its settings via the Extensions menu.
    • In the Redirector interface, click “Create new redirect” or a similar option.
    • Configure the rule as follows:
      • Description: Name it, e.g., “RosettaCode Redirect.”
      • Example URL: Enter a sample URL, like http://rosettacode.org/wiki/Example.
      • Include pattern: Use a regular expression to match all rosettacode.org URLs, e.g.: ^(http|https)://rosettacode\.org/(.*)$ This matches http:// or https:// URLs starting with rosettacode.org and any path.
      • Redirect to: Enter the target URL pattern, e.g.: $1://rosettacode.miraheze.org/$2 Here, $1 keeps the protocol (http or https), and $2 keeps the original path.
      • Pattern type: Select “Regular Expression.”
      • Apply to: Check “Main window” and any other relevant options.
  2. Save and Test:

    • Save the rule, then visit a rosettacode.org URL (e.g., http://rosettacode.org/wiki/Example).
    • Chrome should redirect to rosettacode.miraheze.org/wiki/Example.
    • If it doesn’t work, double-check the regular expression or ensure the extension is enabled.
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联