leeyeh / Let's Beta

// ==UserScript==
// @name         Let's Beta
// @version      0.1
// @description  try to take over the world!
// @author       leeyeh
// @match        https://leancloud.cn/*
// @match        https://leanticket.cn/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var refirectHosts = {
      'leancloud.cn': 'beta.leancloud.cn',
      'leanticket.cn': 'stg-saas-ticket.leanapp.cn',
    };
    var hostname = window.location.hostname;
    if (hostname && refirectHosts[hostname]) {
      window.location.hostname = refirectHosts[hostname];
    }
})();