Last active
August 29, 2015 14:22
-
-
Save Codesleuth/ae6ba79e620011920db3 to your computer and use it in GitHub Desktop.
Trello Card ID Userscript
This file contains hidden or 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 Trello Card ID | |
// @namespace http://www.codesleuth.co.uk/ | |
// @version 0.1 | |
// @description Adds card IDs to Trello cards | |
// @author David Wood ([email protected]) | |
// @match https://trello.com/*/*/* | |
// @grant none | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) return; | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addGlobalStyle('.card-short-id { display: inline !important; font-weight: bold; }'); | |
addGlobalStyle('.card-short-id:after { content: " "; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment