Last active
September 25, 2023 16:37
-
-
Save phts/7cfb50bf4db45255e7a07fd28e1ef1ed to your computer and use it in GitHub Desktop.
[Userscript] Jira: "Add comment" form above Activity panel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Jira: "Add comment" form above Activity panel | |
// @namespace https://github.com/phts/ | |
// @version 0.0.2 | |
// @description "Add comment" form above Activity panel on Jira issue page - convinient when sorting is set to "Newest first" | |
// @author Phil Tsaryk | |
// @match https://jira.willhillatlas.com/browse/* | |
// @grant none | |
// ==/UserScript== | |
;(function () { | |
document.querySelector('.aui-item.issue-main-column').appendChild(document.querySelector('#activitymodule')) | |
const css = `\ | |
#issue-comment-add { | |
padding: 0 !important; | |
}` | |
const head = document.getElementsByTagName('head')[0] | |
const style = document.createElement('style') | |
head.appendChild(style) | |
style.appendChild(document.createTextNode(css)) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment