Skip to content

Instantly share code, notes, and snippets.

@levonet
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save levonet/ea86a86fef0e1624e695 to your computer and use it in GitHub Desktop.

Select an option

Save levonet/ea86a86fef0e1624e695 to your computer and use it in GitHub Desktop.
Remove organization from issue title
// ==UserScript==
// @name waffle.io
// @namespace https://waffle.io/
// @version 0.1
// @description Remove organization from title
// @author You
// @match https://waffle.io/*
// @grant none
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==
console.log("TM running at " + window.location.href);
waitForKeyElements (
"div.source-name",
changeTaskBorder
);
function changeTaskBorder (jNode) {
$("div.source-name")
.css("color", "#ffd")
.css("width", "100%")
.css("margin-left", "0")
.css("text-overflow", "initial")
.css("font-stretch", "ultra-condensed")
.text(function(i,txt) {
var name = txt.split('/')[1];
return (name !== undefined) ? name : txt;
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment