beauful_jira

jira美化扩展

  1. // ==UserScript==
  2. // @name beauful_jira
  3. // @namespace https://bricre.atlassian.net/jira
  4. // @version 0.3
  5. // @description jira美化扩展
  6. // @author ZHLH
  7. // @match https://bricre.atlassian.net/jira/*
  8. // @require https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js
  9. // @run-at document-end
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. $(function () {
  15. var $header = $('[data-testid=atlassian-navigation--header]');
  16. $header.append(`<div id="_expand" style="position: absolute;top: 51px;left: 50%;display: inline-block;text-align: center;width: 50px;height: 24px;background: #eee;transform: rotate(180deg);z-index: 10;"><svg width="24" height="24" viewBox="0 0 24 24" focusable="false" role="presentation"><path d="M8.292 10.293a1.009 1.009 0 0 0 0 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 0 0 0-1.419.987.987 0 0 0-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 0 0-1.406 0z" fill="currentColor" fill-rule="evenodd"></path></svg></div>`)
  17. $('#_expand').on('click', function () {
  18. if ($header.parent().data('state') == 'small') {
  19. $header.parent().css({
  20. top: '0px'
  21. }).data('state', 'max')
  22. return;
  23. }
  24. $header.parent().css({
  25. top: '-50px'
  26. }).data('state', 'small')
  27. })
  28. $('.css-e48442').css({
  29. 'margin-top': '0px !important'
  30. })
  31. $('.styled__Outer-sc-1a16ki5-0').css({
  32. 'display': 'flex',
  33. 'margin': '0'
  34. })
  35. })
  36. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址