Skip to content

Instantly share code, notes, and snippets.

@karlrwjohnson
Created November 26, 2018 16:05
Show Gist options
  • Save karlrwjohnson/922e6d49731345a685ca324c6fe95847 to your computer and use it in GitHub Desktop.
Save karlrwjohnson/922e6d49731345a685ca324c6fe95847 to your computer and use it in GitHub Desktop.
Show navbar links in BitBucket (Greasemonkey script)
// ==UserScript==
// @name Show nav labels in Bitbucket
// @version 0.1
// @description Add labels below icons on the left nav bar
// @match (insert URL of bitbucket server)
// @grant none
// ==/UserScript==
console.log('user script loaded');
(function() {
'use strict';
try {
const style = document.createElement('style');
style.textContent = `
.aui-nav-item-label {
position: initial !important;
height: initial !important;
white-space: initial !important;
width: 100% !important;
text-align: center !important;
color: rgb(0,0,0,0.6) !important;
font-size: 12px !important;
line-height: 1em !important;
font-weight: 500 !important;
text-transform: capitalize !important;
}
`;
document.body.appendChild(style);
} catch(e) {
console.error(e);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment