version upgrade; add seoul

This commit is contained in:
Tyler Bean 2022-02-28 15:43:36 -06:00
parent cfbf197413
commit 40e06ca5ce
2 changed files with 40 additions and 16 deletions

View File

@ -6,7 +6,7 @@
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js // @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js
// @grant GM_addStyle // @grant GM_addStyle
// @grant GM_setClipboard // @grant GM_setClipboard
// @version 0.0.7 // @version 0.0.8
// ==/UserScript== // ==/UserScript==
// draw frame // draw frame
@ -826,6 +826,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
]; ];
var regionArray = [ var regionArray = [
"ap-northeast-1", "ap-northeast-1",
"ap-northeast-2",
"ap-south-1", "ap-south-1",
"ap-southeast-1", "ap-southeast-1",
"ap-southeast-2", "ap-southeast-2",
@ -935,6 +936,11 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
var buttonRegions = ["ap-northeast-1"]; var buttonRegions = ["ap-northeast-1"];
toggleRegion(buttonName, buttonRegions); toggleRegion(buttonName, buttonRegions);
}; };
function apnortheast2ButtonClickAction(zEvent) {
var buttonName = "apnortheast2Button";
var buttonRegions = ["ap-northeast-2"];
toggleRegion(buttonName, buttonRegions);
};
function euwest1ButtonClickAction(zEvent) { function euwest1ButtonClickAction(zEvent) {
var buttonName = "euwest1Button"; var buttonName = "euwest1Button";
var buttonRegions = ["eu-west-1"]; var buttonRegions = ["eu-west-1"];
@ -957,7 +963,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
}; };
function stage3amButtonClickAction(zEvent) { function stage3amButtonClickAction(zEvent) {
var buttonName = "stage3amButton"; 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); toggleRegion(buttonName, buttonRegions);
}; };
function stage3pmButtonClickAction(zEvent) { function stage3pmButtonClickAction(zEvent) {
@ -1014,9 +1020,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'</br>' + '</br>' +
'<button id="apsoutheast1Button" style="width:468px" type="button">ap-southeast-1</button>' + '<button id="apsoutheast1Button" style="width:468px" type="button">ap-southeast-1</button>' +
'</br></br>' + '</br></br>' +
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' + '<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' + '<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' + '<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
'</br></br>' + '</br></br>' +
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' + '<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
'</center>'; '</center>';
@ -1029,6 +1036,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons // array of active buttons
buttonArray = [ buttonArray = [
"apnortheast1", "apnortheast1",
"apnortheast2",
"apsouth1", "apsouth1",
"apsoutheast1", "apsoutheast1",
"apsoutheast2", "apsoutheast2",
@ -1058,6 +1066,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false); document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false); document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false); document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false); document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false); document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
@ -1096,9 +1105,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'<button id="useast2Button" style="width:117px" type="button">us-east-2</button>' + '<button id="useast2Button" style="width:117px" type="button">us-east-2</button>' +
'<button id="apsoutheast1Button" style="width:117px" type="button">ap-southeast-1</button>' + '<button id="apsoutheast1Button" style="width:117px" type="button">ap-southeast-1</button>' +
'</br></br>' + '</br></br>' +
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' + '<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' + '<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' + '<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
'</br></br>' + '</br></br>' +
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' + '<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
'</center>'; '</center>';
@ -1111,6 +1121,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons // array of active buttons
buttonArray = [ buttonArray = [
"apnortheast1", "apnortheast1",
"apnortheast2",
"apsouth1", "apsouth1",
"apsoutheast1", "apsoutheast1",
"apsoutheast2", "apsoutheast2",
@ -1138,6 +1149,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false); document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false); document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false); document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false); document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false); document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);

View File

@ -4,7 +4,7 @@
// @description Effort to simplify configuration of incidents/maintenance windows // @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/jquery/1.6.2/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.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 // @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 // @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$/ // @include /^https?://app\.status\.io/dashboard/.*/?(maintenance|incident)/create$/
@ -862,6 +862,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
]; ];
var regionArray = [ var regionArray = [
"ap-northeast-1", "ap-northeast-1",
"ap-northeast-2",
"ap-south-1", "ap-south-1",
"ap-southeast-1", "ap-southeast-1",
"ap-southeast-2", "ap-southeast-2",
@ -971,6 +972,11 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
var buttonRegions = ["ap-northeast-1"]; var buttonRegions = ["ap-northeast-1"];
toggleRegion(buttonName, buttonRegions); toggleRegion(buttonName, buttonRegions);
}; };
function apnortheast2ButtonClickAction(zEvent) {
var buttonName = "apnortheast2Button";
var buttonRegions = ["ap-northeast-2"];
toggleRegion(buttonName, buttonRegions);
};
function euwest1ButtonClickAction(zEvent) { function euwest1ButtonClickAction(zEvent) {
var buttonName = "euwest1Button"; var buttonName = "euwest1Button";
var buttonRegions = ["eu-west-1"]; var buttonRegions = ["eu-west-1"];
@ -993,7 +999,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
}; };
function stage3amButtonClickAction(zEvent) { function stage3amButtonClickAction(zEvent) {
var buttonName = "stage3amButton"; 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); toggleRegion(buttonName, buttonRegions);
}; };
function stage3pmButtonClickAction(zEvent) { function stage3pmButtonClickAction(zEvent) {
@ -1050,9 +1056,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'</br>' + '</br>' +
'<button id="apsoutheast1Button" style="width:468px" type="button">ap-southeast-1</button>' + '<button id="apsoutheast1Button" style="width:468px" type="button">ap-southeast-1</button>' +
'</br></br>' + '</br></br>' +
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' + '<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' + '<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' + '<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
'</br></br>' + '</br></br>' +
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' + '<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
'</center>'; '</center>';
@ -1065,6 +1072,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons // array of active buttons
buttonArray = [ buttonArray = [
"apnortheast1", "apnortheast1",
"apnortheast2",
"apsouth1", "apsouth1",
"apsoutheast1", "apsoutheast1",
"apsoutheast2", "apsoutheast2",
@ -1094,6 +1102,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false); document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false); document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false); document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false); document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false); document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
@ -1132,9 +1141,10 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
'<button id="useast2Button" style="width:117px" type="button">us-east-2</button>' + '<button id="useast2Button" style="width:117px" type="button">us-east-2</button>' +
'<button id="apsoutheast1Button" style="width:117px" type="button">ap-southeast-1</button>' + '<button id="apsoutheast1Button" style="width:117px" type="button">ap-southeast-1</button>' +
'</br></br>' + '</br></br>' +
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' + '<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' + '<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' + '<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
'</br></br>' + '</br></br>' +
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' + '<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
'</center>'; '</center>';
@ -1147,6 +1157,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
// array of active buttons // array of active buttons
buttonArray = [ buttonArray = [
"apnortheast1", "apnortheast1",
"apnortheast2",
"apsouth1", "apsouth1",
"apsoutheast1", "apsoutheast1",
"apsoutheast2", "apsoutheast2",
@ -1174,6 +1185,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false); document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false); document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false); document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false); document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false); document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);