diff --git a/code-payload.js b/code-payload.js
index 298022b..e6373fb 100644
--- a/code-payload.js
+++ b/code-payload.js
@@ -6,7 +6,7 @@
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js
// @grant GM_addStyle
// @grant GM_setClipboard
-// @version 0.0.7
+// @version 0.0.8
// ==/UserScript==
// draw frame
@@ -826,6 +826,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
];
var regionArray = [
"ap-northeast-1",
+ "ap-northeast-2",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
@@ -935,6 +936,11 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
var buttonRegions = ["ap-northeast-1"];
toggleRegion(buttonName, buttonRegions);
};
+ function apnortheast2ButtonClickAction(zEvent) {
+ var buttonName = "apnortheast2Button";
+ var buttonRegions = ["ap-northeast-2"];
+ toggleRegion(buttonName, buttonRegions);
+ };
function euwest1ButtonClickAction(zEvent) {
var buttonName = "euwest1Button";
var buttonRegions = ["eu-west-1"];
@@ -957,7 +963,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
};
function stage3amButtonClickAction(zEvent) {
var buttonName = "stage3amButton";
- var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1"];
+ var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"];
toggleRegion(buttonName, buttonRegions);
};
function stage3pmButtonClickAction(zEvent) {
@@ -1014,9 +1020,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'' +
'' +
'' +
- '' +
- '' +
- '' +
+ '' +
+ '' +
+ '' +
+ '' +
'' +
'' +
'';
@@ -1029,6 +1036,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons
buttonArray = [
"apnortheast1",
+ "apnortheast2",
"apsouth1",
"apsoutheast1",
"apsoutheast2",
@@ -1058,6 +1066,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
+ document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
@@ -1096,9 +1105,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'' +
'' +
'' +
- '' +
- '' +
- '' +
+ '' +
+ '' +
+ '' +
+ '' +
'' +
'' +
'';
@@ -1111,6 +1121,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons
buttonArray = [
"apnortheast1",
+ "apnortheast2",
"apsouth1",
"apsoutheast1",
"apsoutheast2",
@@ -1138,6 +1149,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
+ document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
diff --git a/statusio-selector.user.js b/statusio-selector.user.js
index af94ce4..3b10f66 100644
--- a/statusio-selector.user.js
+++ b/statusio-selector.user.js
@@ -4,7 +4,7 @@
// @description Effort to simplify configuration of incidents/maintenance windows
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js
-// @version 0.0.7
+// @version 0.0.8
// @downloadUrl https://gitea.frijole.lol/o0beaner/js-statusio-selector/raw/branch/main/statusio-selector.user.js
// @updateURL https://gitea.frijole.lol/o0beaner/js-statusio-selector/raw/branch/main/statusio-selector.user.js
// @include /^https?://app\.status\.io/dashboard/.*/?(maintenance|incident)/create$/
@@ -862,6 +862,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
];
var regionArray = [
"ap-northeast-1",
+ "ap-northeast-2",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
@@ -971,6 +972,11 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
var buttonRegions = ["ap-northeast-1"];
toggleRegion(buttonName, buttonRegions);
};
+ function apnortheast2ButtonClickAction(zEvent) {
+ var buttonName = "apnortheast2Button";
+ var buttonRegions = ["ap-northeast-2"];
+ toggleRegion(buttonName, buttonRegions);
+ };
function euwest1ButtonClickAction(zEvent) {
var buttonName = "euwest1Button";
var buttonRegions = ["eu-west-1"];
@@ -993,7 +999,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
};
function stage3amButtonClickAction(zEvent) {
var buttonName = "stage3amButton";
- var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1"];
+ var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"];
toggleRegion(buttonName, buttonRegions);
};
function stage3pmButtonClickAction(zEvent) {
@@ -1050,9 +1056,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'' +
'' +
'' +
- '' +
- '' +
- '' +
+ '' +
+ '' +
+ '' +
+ '' +
'' +
'' +
'';
@@ -1065,6 +1072,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons
buttonArray = [
"apnortheast1",
+ "apnortheast2",
"apsouth1",
"apsoutheast1",
"apsoutheast2",
@@ -1094,6 +1102,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
+ document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
@@ -1132,9 +1141,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'' +
'' +
'' +
- '' +
- '' +
- '' +
+ '' +
+ '' +
+ '' +
+ '' +
'' +
'' +
'';
@@ -1147,6 +1157,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons
buttonArray = [
"apnortheast1",
+ "apnortheast2",
"apsouth1",
"apsoutheast1",
"apsoutheast2",
@@ -1174,6 +1185,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
+ document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);