Skip to content

Instantly share code, notes, and snippets.

@Briansbum
Last active June 21, 2018 12:06
Show Gist options
  • Save Briansbum/2efdd7934790005774752c487bc6def1 to your computer and use it in GitHub Desktop.
Save Briansbum/2efdd7934790005774752c487bc6def1 to your computer and use it in GitHub Desktop.
Tampermonkey script to add AWS region ids to the region selector menu
// ==UserScript==
// @name awsRegionIds
// @namespace http://intenthq.com/
// @version 0.1
// @description Add AWS region ids to the region selector menu
// @author github.com/Briansbum github.com/kittsville
// @match https://*.console.aws.amazon.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementById("nav-regionMenu").addEventListener("click", () => document.querySelectorAll("#regionMenuContent .available-region").forEach(item => { item.textContent=item.getAttribute("data-region-id") + " - " + item.textContent }))
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment