您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
计算 section.mw-pager-body 中特定的 li 元素
RosettaCode Conribution Records Counter
Recently(2025-06-02), rosettacode has updated its domain name to rosettacode.miraheze.org
Edit, rosettacode.org
domain is back, 2025-06-03.
As far as I know, Extension Proxy Omega
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
.You can just use Tampermonkey script to do the same thing
// ==UserScript==
// @name Rosetta Code Redirect
// @description Auto redirect rosettacode.org to rosettacode.miraheze.org
// @author aspen138
// @license MIT
// @match https://rosettacode.org/*
// @match http://rosettacode.org/*
// @exclude-match https://rosettacode.miraheze.org/*
// @exclude-match http://rosettacode.miraheze.org/*
// @grant none
// @run-at document-start
// @icon https://rosettacode.miraheze.org/favicon.ico
// ==/UserScript==
(() => {
const currentUrl = window.location.href;
// Defend in depth - don't redirect if already on miraheze
if (currentUrl.includes('rosettacode.miraheze.org')) {
return;
}
// Create the new URL by replacing the domain
const newUrl = currentUrl.replace(
/^(https?:\/\/)rosettacode\.org(\/.*)?$/,
'$1rosettacode.miraheze.org$2'
);
// Redirect to the new URL
if (newUrl !== currentUrl) {
window.location.replace(newUrl);
}
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址