Skip to content

Instantly share code, notes, and snippets.

@Codesleuth
Last active August 29, 2015 14:22
Show Gist options
  • Save Codesleuth/ae6ba79e620011920db3 to your computer and use it in GitHub Desktop.
Save Codesleuth/ae6ba79e620011920db3 to your computer and use it in GitHub Desktop.
Trello Card ID Userscript
// ==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