Skip to content

Instantly share code, notes, and snippets.

@levonet
Created November 29, 2016 13:13
Show Gist options
  • Save levonet/e74685e11f97da1629b5ccb63ace7ab3 to your computer and use it in GitHub Desktop.
Save levonet/e74685e11f97da1629b5ccb63ace7ab3 to your computer and use it in GitHub Desktop.
Waffle.io UserScript — Remove organization from title
// ==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