NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Bitbucket Color Customization // @namespace https://bitbucket.org/cedbonhomme // @description basic color edition // @include https://bitbucket.org/* // @grant GM_addStyle // ==/UserScript== /******************************************************************************************************************/ /** Oxygen Font **/ GM_addStyle("@font-face { font-family: 'Oxygen'; font-style: normal; font-weight: 400; src: local('Oxygen'), local('Oxygen-Regular'), url(http://fonts.gstatic.com/s/oxygen/v5/f8OBjBbevvywgbyJOxlO7Q.ttf) format('truetype');}"); GM_addStyle("html {font-family: 'Oxygen', sans-serif;}") /******************************************************************************************************************/ /** Change navbar color **/ GM_addStyle(".aui-header , .aui-dropdown2-trigger-group { color: white; background: #616161; }"); /******************************************************************************************************************/ /** Button color NAVBAR**/ /* Button Normal */ GM_addStyle(".aui-header .aui-button.aui-button-primary { background: #c6538c; }"); /* Button Active */ GM_addStyle(".aui-header .aui-nav .aui-button.aui-button-primary:active, .aui-header .aui-nav .aui-button.aui-button-primary.active { background: #c6538c; }"); /* Button Focus */ GM_addStyle(".aui-header .aui-nav .aui-button.aui-button-primary:focus, .aui-header .aui-nav .aui-button.aui-button-primary:hover { background: #c6538c; }"); /******************************************************************************************************************/ /** Navbar menu link hover **/ GM_addStyle(".aui-header .aui-dropdown2-trigger.active, .aui-header a:focus, .aui-header a:hover, .aui-header a:active { background: #c6538c; }"); /** Dropdown color **/ GM_addStyle(".aui-dropdown2.aui-style-default .active, .aui-dropdown2.aui-style-default .aui-dropdown2-active { background: #c6538c; }"); /******************************************************************************************************************/ /** Button color **/ GM_addStyle(".aui-button.aui-button-primary:hover, .aui-button.aui-button-primary:focus { background: #c6538c; }"); GM_addStyle(".aui-button.aui-button-primary, .aui-button.aui-button-primary:visited { background: #c6538c; }"); /** Free trial bitbucket button **/ GM_addStyle("#app-switcher.aui-dropdown2 .blank-slate li .aui-button.aui-button-primary, #app-switcher.aui-dropdown2 .blank-slate li .aui-button.aui-button-primary.active { background: #c6538c; }"); /******************************************************************************************************************/ /** link color a**/ GM_addStyle("a { color: #c6538c; }"); /* Navbar links */ GM_addStyle(".aui-navgroup-vertical .aui-nav>li>a, .aui-nav-vertical>li>a { color: #c6538c; }"); /* Visited navbar links */ GM_addStyle(".aui-sidebar[aria-expanded=false] .aui-navgroup-vertical .aui-nav .aui-nav-child-selected a, .aui-sidebar-submenu[aria-expanded=false] .aui-navgroup-vertical .aui-nav .aui-nav-child-selected a, .aui-sidebar .aui-navgroup-vertical .aui-nav .aui-nav-selected a, .aui-sidebar-submenu .aui-navgroup-vertical .aui-nav .aui-nav-selected a { color: #c6538c; }"); /******************************************************************************************************************/ /** Overview number color **/ GM_addStyle("#repo-overview #repo-stats .stats li .value { color: #c6538c; }"); /******************************************************************************************************************/ /** Dashboard**/ /* tab link */ GM_addStyle(".aui-navgroup-horizontal .aui-nav>li a { color: #c6538c; }"); /* New to git link */ GM_addStyle("#dashboard .dashboard-item .title { color: #c6538c; }"); /* learn more link */ GM_addStyle("#dashboard .dashboard-item .call-to-action { color: #c6538c; }"); /******************************************************************************************************************/ /* Sign In button */ GM_addStyle(".aui-header .aui-nav .aui-button-primary, .aui-header .aui-nav .aui-button-primary:link, .aui-header .aui-nav .aui-button-primary:visited { background: #c6538c; }"); /* Homepage background */ GM_addStyle("#homepage #content { background: #c6538c; }"); /* section break */ GM_addStyle("#homepage .tutorials-container { border-top: 1px solid white; }"); GM_addStyle("#homepage .tutorials-container a { border: 1px solid white; }"); /* Homepage button Free git tutorial */ GM_addStyle("#homepage .tutorials-container a:hover { background-color: white; color: #c6538c; }"); /*Signup button form */ GM_addStyle("#homepage .signup-form button { background-color: #c6538c; background-image: linear-gradient(to bottom,#ff6bb5,#a74677); text-shadow: 0px 1px 2px #763154;}"); GM_addStyle("#homepage .signup-form input.text, #homepage .signup-form button { border: 1px solid white; }"); /*Cancel button*/ GM_addStyle(".aui-button.aui-button-link, .aui-button.aui-button-link:visited { color: #c6538c; }"); GM_addStyle(".recaptchatable a, .recaptchatable a:hover { color: #c6538c; background }");