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")
- Install the Forwardor extension:
**You should go the GitHub pgae to download Redirector
extension.
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:
Description: Any name, such as "RosettaCode Redirect".
Example URL: Enter an example URL, such ashttp://rosettacode.org/wiki/Example
.
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.
- Save and Test:
-After saving the rule, open a URL for 'rosettacode. org' (e.g
http://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.