command-center to paragon

command center to paragon.

当前为 2020-12-24 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         command-center to paragon
// @namespace    http://tampermonkey.net/
// @version      0.0.4
// @description  command center to paragon.
// @author       You
// @include  /^https?://command-center\.support\.aws\.a2z.com/case-console*/

// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    // @match        *://command-center.support.aws.a2z.com/case-console/*

    // 获取case Id
    var url = window.location.href;
    console.log(url);


    var arrs=url.split("/");
    var 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);

})();