Last active
November 11, 2021 22:13
-
-
Save andreasisaak/1d6e306ad63baa766b8335dda92fd1e0 to your computer and use it in GitHub Desktop.
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 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