Created
November 29, 2016 13:13
-
-
Save levonet/e74685e11f97da1629b5ccb63ace7ab3 to your computer and use it in GitHub Desktop.
Waffle.io UserScript — Remove organization from title
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 waffle.io.js | |
// @namespace https://waffle.io/ | |
// @version 0.2 | |
// @description Waffle.io — Remove organization from title | |
// @author levonet | |
// @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