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

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

  1. // ==UserScript==
  2. // @name wuyou.net Domain Redirect
  3. // @name:zh-CN 无忧启动论坛 wuyou.net 子域名重定向
  4. // @author ttimasdf
  5. // @namespace https://rabit.pw/
  6. // @license Apache License 2.0
  7. // @version 1.0
  8. // @description Redirects duplicated wuyou.net subdomains for a consistent experience and login status.
  9. // @description:zh-CN 对 wuyou.net 子域名进行重定向(如搜索引擎收录的 bbs.c3.wuyou.net)以保持一致的体验。
  10. // @match http://bbs.c3.wuyou.net/*
  11. // @match http://wuyou.net/*
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. // Redirect to the desired URL
  19. window.location.href = "http://bbs.wuyou.net" + window.location.pathname + window.location.search;
  20. })();