Skip to content

Instantly share code, notes, and snippets.

@otherguy
Forked from SxDx/commands.sh
Last active February 22, 2022 12:25
Show Gist options
  • Save otherguy/5b1e5fb85a55aa4e33fa4a2c534f40ff to your computer and use it in GitHub Desktop.
Save otherguy/5b1e5fb85a55aa4e33fa4a2c534f40ff to your computer and use it in GitHub Desktop.
Custom native JIRA app
// Icon by [Elias](https://macosicons.com/#/u/Elias)
curl -Lo jira.icns https://media.macosicons.com/parse/files/macOSicons/58921463ceb5ae244469378f1dc9ca1f_Jira_Cloud.icns
// macOS
nativefier https://canvadev.atlassian.net/jira/software/c/projects/VAI/boards/1295 --icon jira.icns --name "Jira" --single-instance --internal-urls ".*?(canvadev\.atlassian\.net|www.google.com\/a\/canva.com\/acs|accounts.google.com|id.atlassian.com/login|safetysync.atlassian.net).*?" --inject jira.css --title-bar-style="hiddenInset"
// Windows
nativefier https://canvadev.atlassian.net/jira/software/c/projects/VAI/boards/1295 --icon jira.icns --name "Jira" --single-instance --internal-urls ".*?(canvadev\.atlassian\.net|www.google.com\/a\/canva.com\/acs|accounts.google.com|id.atlassian.com/login|safetysync.atlassian.net).*?" --inject jira.css --platform="windows"
// Linux
nativefier https://canvadev.atlassian.net/jira/software/c/projects/VAI/boards/1295 --icon jira.icns --name "Jira" --single-instance --internal-urls ".*?(canvadev\.atlassian\.net|www.google.com\/a\/canva.com\/acs|accounts.google.com|id.atlassian.com/login|safetysync.atlassian.net).*?" --inject jira.css --platform="linux"
#ghx-modes-tools {
display: none !important;
}
#ghx-controls-buttons {
display: none !important;
}
button[aria-label="Add Checklist"] {
display: none !important;
}
button[aria-label="Create subtask"] {
display: none !important;
}
nav[aria-label="Primary Navigation"] > div {
margin-left: 55px
}
#ak-jira-navigation {
height: auto !important;
}
#ak-jira-navigation>header {
height: 44px;
}
#ak-jira-navigation > header > nav > div > div {
display: flex;
flex-direction: column;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
height: 100%;
position: relative;
}
.ghx-stat-1 [data-tooltip*="priority"] {
display: none !important;
}
.ghx-stat-1 span.ghx-field.ghx-field-icon {
filter: grayscale(1);
}
div.ghx-days {
display: none !important;
}
/* CSS 4 */
/* .ghx-stat-1 span.ghx-field:has(div.ghx-days) {
display: none !important;
}
*/
.ghx-grabber {
filter: grayscale(.25);
}
.ghx-issue {
padding: 12px !important;
}
.ghx-parent-group {
padding: 3px !important;
}
/* Jira Help */
#ak-jira-navigation > header > div > span:nth-child(3) {
display: none !important;
}
/* Your Profile */
/* #ak-jira-navigation > header > div > span:nth-child(5) {
display: none !important;
}
*/
.css-pdqff4 {
display: none;
}
#jira-issue-header-actions > div > div > div:nth-child(1) {
display: none !important;
}
#jira-issue-header > div > div > div > div > div > div > div:nth-child(2) > div > div:nth-child(2) {
display: none !important;
}
div[data-test-id="issue.views.issue-base.context.ecosystem-glance-panel"] {
display: none !important;
}
#ak-jira-navigation > header > nav > div:nth-child(1) {
display: none !important;
}
#ak-jira-navigation > header > nav > a {
display: none !important;
}
/* Most likely to break */
.flfhlx-2 > .flfhlx-3 {
display: none !important;
}
.flfhlx-2 > .nld3xj-0 {
display: none !important;
}
.flfhlx-2 > .mffpf0-4 {
display: none !important;
}
.flfhlx-2 > .jkkmrm-0 {
display: none !important;
}
.flfhlx-2 > .sc-1oj0f8l-0 {
display: none !important;
}
/* Most likely to break */
/* Dragabble header */
nav[aria-label="Primary Navigation"] {
-webkit-app-region: drag;
}
/* Dragabble header */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment