NGA 重定向

自动重定向 NGA 域名到 bbs.nga.cn

当前为 2021-12-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name NGA Redirector
  3. // @name:en-US NGA Redirector
  4. // @name:zh-CN NGA 重定向
  5. // @description Automatically redirect NGA domains to bbs.nga.cn
  6. // @description:en-US Automatically redirect NGA domains to bbs.nga.cn
  7. // @description:zh-CN 自动重定向 NGA 域名到 bbs.nga.cn
  8. // @namespace nga-redirector
  9. // @version 2021.12.09
  10. // @author Akatsuki Rui
  11. // @license MIT License
  12. // @run-at document-start
  13. // @match *://nga.178.com/*
  14. // @match *://ngabbs.com/*
  15. // @match *://ngacn.cc/*
  16. // @match *://yues.org/*
  17. // ==/UserScript==
  18.  
  19. "use strict";
  20.  
  21. window.location.replace(location.href.replace(location.hostname, "bbs.nga.cn"));