command-center to paragon

command center to paragon.

目前为 2020-12-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         command-center to paragon
// @namespace    http://tampermonkey.net/
// @version      0.0.0
// @description  command center to paragon.
// @author       You
// @match        *://command-center.support.aws.a2z.com/case-console#/cases/*
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
 

    // 获取case Id
    // https://command-center.support.aws.a2z.com/case-console#/cases/7708235841
    var url = window.location.href;
    console.log(url);


    var arrs=url.split("/");
    caseId=arrs[arrs.length-1];
    console.log(caseId);   

    // 进行跳转
    var newUrl="https://paragon-na.amazon.com/hz/view-case?caseId="+caseId+"&no_redirect=1";
    location.replace(newUrl);

})();