NGA domain redirect

Automatically redirect NGA domains to bbs.nga.cn

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name               NGA domain redirect
// @name:zh-CN         NGA 域名重定向
// @namespace          nga-redirect
// @version            2025.01.30
// @description        Automatically redirect NGA domains to bbs.nga.cn
// @description:zh-CN  自动重定向 NGA 域名到 bbs.nga.cn
// @author             Amelia
// @license            MIT
// @run-at             document-start
// @match              *://g.nga.cn/*
// @match              *://nga.178.com/*
// @match              *://ngabbs.com/*
// @match              *://ngacn.cc/*
// @icon               https://bbs.nga.cn/favicon.ico
// @grant              none
// ==/UserScript==

(function() {
    'use strict';

    if (location.hostname != "bbs.nga.cn") {
        window.location.hostname = "bbs.nga.cn";
    }
})();