为什么我需要一个这样的工具
这样三部分组成的问题地址,每次都要手动输入,太麻烦了,所以有了这个油猴插件
(function  ($ ) {     'use strict' ;     let  btn = '<li><button id="CopyIt" class="aui-button" aria-disabled="false" original-title="" resolved="">复制Jira信息</button></li>' ;          $(".filter-operations" ).prepend (btn);     $("#CopyIt" ).click (function  (         let  title = $("#summary-val" ).text ()         let  link = $(".issue-link" )[0 ].href          let  jiraNo = $(".issue-link" ).attr ('data-issue-key' )         let  text = `[${title}  ${jiraNo} ](${link} )`                   copyToClipboard (text)     });     function  copyToClipboard (textToCopy ) {                  if  (navigator.clipboard  && window .isSecureContext ) {                          return  navigator.clipboard .writeText (textToCopy);         } else  {                          let  input = document .createElement ('input' )             input.style .position  = 'fixed'              input.style .top  = '-10000px'              input.style .zIndex  = '-999'              document .body .appendChild (input)             input.value  = textToCopy             input.focus ()             input.select ()             try  {                 let  result = document .execCommand ('copy' )                 document .body .removeChild (input)                 if  (!result || result === 'unsuccessful' ) {                     console .log ('复制失败' )                 } else  {                     console .log ('复制成功' )                 }             } catch  (e) {                 document .body .removeChild (input)                 alert ('当前浏览器不支持复制功能,请检查更新或更换其他浏览器操作' )             }         }     } })(jQuery);