Skip to content

Instantly share code, notes, and snippets.

@MiniCodeMonkey
Created June 16, 2012 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MiniCodeMonkey/2942275 to your computer and use it in GitHub Desktop.
Save MiniCodeMonkey/2942275 to your computer and use it in GitHub Desktop.
Basecamp - Find yourself in a project
/*
* Instructions:
* Paste one of the following snippets in your browsers Javascript console
*/
// Remove all others than yourself
var n = "Mathias Hansen"; $("li .todo").each(function () { if ($.trim($(this).find("span .pill").find("span").html()) != n) { $(this).remove(); } });
// Mark your name with a color
var n = "Mathias Hansen"; $("li .todo").each(function () { var o = $(this).find("span .pill").find("span"); if ($.trim(o.html()) == n) { o.css('color', '#000'); o.parent().css('background-color', 'yellow'); } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment