Skip to content

Instantly share code, notes, and snippets.

@mbonig
Last active December 27, 2018 16:01
Show Gist options
  • Save mbonig/66bfd25eea0fbbe3f1727ef28182d86d to your computer and use it in GitHub Desktop.
Save mbonig/66bfd25eea0fbbe3f1727ef28182d86d to your computer and use it in GitHub Desktop.
Tampermonkey Script - I never used AWS's nav shortcuts and the Resource Groups was never that useful to me, so I've removed those in favor of moving the Service History column from the Services dropdown to the navbar instead, since that was always more useful to me.
// ==UserScript==
// @name AWS Console - Move History to Main Nav Bar
// @namespace http://fourlittledogs.com/
// @version 0.1
// @description This script moves the Service History, normally accessible through a dropdown, to the main nav bar.
// @author @mattbonig
// @match https://console.aws.amazon.com/*
// @grant GM_addStyle
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
var $ = window.jQuery;
(function() {
'use strict';
$(()=>{
$('#nav-resourceGroupsMenu').remove();
$('#nav-shortcutBar').remove();
$('#nav-shortcutMenu').remove();
$('#nav-servicesMenu').after($('#nav-history'));
$('#service-history-column').remove();
});
GM_addStyle(`#awsgnav #nav-history {
display: flex !important;
padding: 5px;
margin: 0;
float: left;
white-space: nowrap;
overflow: hidden;
height: 30px; }`);
GM_addStyle('#awsgnav #nav-history .service-label { color: white !important; }');
GM_addStyle('body.awsui-mezzanine-overrides #awsgnav #nav-history { height: auto !important; }');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment