JIRA Floating Menu Bar

Makes the menu bar in JIRA issues stay at the top of the page when scrolling

  1. // ==UserScript==
  2. // @name JIRA Floating Menu Bar
  3. // @namespace chriskim06
  4. // @description Makes the menu bar in JIRA issues stay at the top of the page when scrolling
  5. // @include https://*jira*com/browse/*
  6. // @version 1.0.0
  7. // @grant none
  8. // @locale en
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.  
  13. var menu = document.querySelector('#header > nav');
  14. if (menu != null) {
  15. menu.style.position = 'fixed';
  16. menu.style.zIndex = '1000';
  17. }
  18.  
  19. var container = document.querySelector('#issue-content');
  20. if (container != null) {
  21. container.style.marginTop = '35px';
  22. }
  23.  
  24. })();