Skip to content

Instantly share code, notes, and snippets.

@andreasisaak
Last active November 11, 2021 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreasisaak/1d6e306ad63baa766b8335dda92fd1e0 to your computer and use it in GitHub Desktop.
Save andreasisaak/1d6e306ad63baa766b8335dda92fd1e0 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Jira Detailprint
// @namespace https://github.com/andreasisaak
// @match https://*.atlassian.net/si/jira.issueviews:issue-html/*
// @description Jira Detailprint
// @version 1
// @author Patrick Kahl <kahl.patrick@googlemail.com>, Andreas Isaak <andy.jared@googlemail.com>
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle(
'body { background-color: white; color:white; }' +
'td { background-color: transparent; border: none !important; padding:0 !important; color:black; }' +
'.formtitle { padding-bottom:15px; margin-bottom:15px; }' +
'.formtitle a { color: #000; }' +
'table { border: none; }' +
'br, .subText { display: none; }' +
'#previous-view { display: none; }' +
'#previous-view + .tableBorder tr:not(:first-child) { display: none; }' +
'.tableBorder ~ .grid { display: none; }' +
'table[align="center"] { display: none; }' +
'.image-wrap { display:block; }'
);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment