SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.addEventListener('load', () => {
  2.     if (window.location.pathname !== '/issues/' && window.location.search !== '?filter=10007') {
  3.         return
  4.     }
  5.  
  6.     let colours = document.querySelectorAll('.customfield_10017')
  7.     const colourMap = [
  8.         yellow: '',
  9.         blue: ''
  10.     ]
  11.     colours.forEach((colour) => {
  12.         let colourCode = typeof colourMap[colour.innerText] === 'string'
  13.             ? colourMap[colour.innerText]
  14.             : colour.innerText;
  15.         colour.innerHTML = '<span style="width: 10px; height: 10px; background: ' + colourCode + '; display: inline-block;"></span>';
  16.     })
  17.     document.querySelector('.headerrow-customfield_10017 span').innerText = 'Status'
  18. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top