无忧启动论坛 wuyou.net 子域名重定向

对 wuyou.net 子域名进行重定向(如搜索引擎收录的 bbs.c3.wuyou.net)以保持一致的体验。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         wuyou.net Domain Redirect
// @name:zh-CN   无忧启动论坛 wuyou.net 子域名重定向
// @author       ttimasdf
// @namespace    https://rabit.pw/
// @license      Apache License 2.0
// @version      1.0
// @description  Redirects duplicated wuyou.net subdomains for a consistent experience and login status.
// @description:zh-CN 对 wuyou.net 子域名进行重定向(如搜索引擎收录的 bbs.c3.wuyou.net)以保持一致的体验。
// @match        http://bbs.c3.wuyou.net/*
// @match        http://wuyou.net/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Redirect to the desired URL
    window.location.href = "http://bbs.wuyou.net" + window.location.pathname + window.location.search;
})();