Jump to mainland China

The region of Adobe website will automatically jump to mainland China from Taiwan and Hong Kong.

// ==UserScript==
// @name        Jump to mainland China
// @name:zh-CN  Adobe繁体中文跳转简体中文
// @description The region of Adobe website will automatically jump to mainland China from Taiwan and Hong Kong.
// @description:zh-CN adobe网站显示语言(地区)繁体中文跳转简体中文,即台湾、香港地区自动跳转回大陆地区。
// @version				0.2
// @author				Tim2way
// @include				https://*.adobe.com/hk_zh/*
// @include				https://*.adobe.com/tw/*
// @grant				none
// @icon				https://cdn2.iconfinder.com/data/icons/adobe-square-2/243/adobe-square-512.png
// @namespace https://greasyfork.org/users/442518
// ==/UserScript==

(function() {
    'use strict';
    var href = location.href;
    var changeHref;
    if (href.indexOf("/tw") > 0){
        changeHref = href.replace(/\/tw/, "/cn");
    }
    else if (href.indexOf("/hk_zh") > 0){
        changeHref = href.replace(/\/hk_zh/, "/cn");
    }
    location.href = changeHref;
})();
// ==/UserScript==

(function() {
    'use strict';
    var href = location.href;
    var changeHref;
    if (href.indexOf("/tw") > 0){
        changeHref = href.replace(/\/tw/, "/cn");
    }
    else if (href.indexOf("/hk_zh") > 0){
        changeHref = href.replace(/\/hk_zh/, "/cn");
    }
    location.href = changeHref;
})();