diff --git a/code-payload.js b/code-payload.js index 6f893b4..067ff6d 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.10 +// @version 0.0.11 // ==/UserScript== // draw frame @@ -89,6 +89,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { "southcentralus", "southeastasia", "southindia", + "swedencentral", "switzerlandnorth", "switzerlandwest", "uaenorth", @@ -175,6 +176,11 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { var buttonRegions = ["westindia"]; toggleRegion(buttonName, buttonRegions); }; + function swedencentralButtonClickAction(zEvent) { + var buttonName = "swedencentralButton"; + var buttonRegions = ["swedencentral"]; + toggleRegion(buttonName, buttonRegions); + }; function switzerlandnorthButtonClickAction(zEvent) { var buttonName = "switzerlandnorthButton"; var buttonRegions = ["switzerlandnorth"]; @@ -372,7 +378,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { }; function stage1ButtonClickAction(zEvent) { var buttonName = "stage1Button"; - var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"]; + var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "swedencentral", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"]; toggleRegion(buttonName, buttonRegions); }; function stage1point5ButtonClickAction(zEvent) { @@ -453,8 +459,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { '' + '' + '
' + - '' + - '' + + '' + + '' + + '' + '
' + '' + '' + @@ -531,6 +538,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { "southcentralus", "southeastasia", "southindia", + "swedencentral", "switzerlandnorth", "switzerlandwest", "uaenorth", @@ -552,6 +560,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { document.getElementById("centralindiaButton").addEventListener("click", centralindiaButtonClickAction, false); document.getElementById("southindiaButton").addEventListener("click", southindiaButtonClickAction, false); document.getElementById("westindiaButton").addEventListener("click", westindiaButtonClickAction, false); + document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false); document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false); document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false); document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false); @@ -614,8 +623,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { '' + '' + '
' + - '' + - '' + + '' + + '' + + '' + '
' + '' + '' + @@ -664,6 +674,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { "norwayeast", "southafricanorth", "southeastasia", + "swedencentral", "switzerlandnorth", "switzerlandwest", "uaenorth", @@ -679,6 +690,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { // regional listeners document.getElementById("canadacentralButton").addEventListener("click", canadacentralCPButtonClickAction, false); + document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false); document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false); document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false); document.getElementById("centralindiaButton").addEventListener("click", centralindiaCPButtonClickAction, false); diff --git a/statusio-selector.user.js b/statusio-selector.user.js index b981649..dbeed3d 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.10 +// @version 0.0.11 // @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$/ @@ -125,6 +125,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { "southcentralus", "southeastasia", "southindia", + "swedencentral", "switzerlandnorth", "switzerlandwest", "uaenorth", @@ -211,6 +212,11 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { var buttonRegions = ["westindia"]; toggleRegion(buttonName, buttonRegions); }; + function swedencentralButtonClickAction(zEvent) { + var buttonName = "swedencentralButton"; + var buttonRegions = ["swedencentral"]; + toggleRegion(buttonName, buttonRegions); + }; function switzerlandnorthButtonClickAction(zEvent) { var buttonName = "switzerlandnorthButton"; var buttonRegions = ["switzerlandnorth"]; @@ -408,7 +414,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { }; function stage1ButtonClickAction(zEvent) { var buttonName = "stage1Button"; - var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"]; + var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "swedencentral", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"]; toggleRegion(buttonName, buttonRegions); }; function stage1point5ButtonClickAction(zEvent) { @@ -489,8 +495,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { '' + '' + '
' + - '' + - '' + + '' + + '' + + '' + '
' + '' + '' + @@ -567,6 +574,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { "southcentralus", "southeastasia", "southindia", + "swedencentral", "switzerlandnorth", "switzerlandwest", "uaenorth", @@ -588,6 +596,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { document.getElementById("centralindiaButton").addEventListener("click", centralindiaButtonClickAction, false); document.getElementById("southindiaButton").addEventListener("click", southindiaButtonClickAction, false); document.getElementById("westindiaButton").addEventListener("click", westindiaButtonClickAction, false); + document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false); document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false); document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false); document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false); @@ -650,8 +659,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { '' + '' + '
' + - '' + - '' + + '' + + '' + + '' + '
' + '' + '' + @@ -700,6 +710,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { "norwayeast", "southafricanorth", "southeastasia", + "swedencentral", "switzerlandnorth", "switzerlandwest", "uaenorth", @@ -715,6 +726,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) { // regional listeners document.getElementById("canadacentralButton").addEventListener("click", canadacentralCPButtonClickAction, false); + document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false); document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false); document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false); document.getElementById("centralindiaButton").addEventListener("click", centralindiaCPButtonClickAction, false);