Skip to content

Instantly share code, notes, and snippets.

@jbdietrich
Created February 28, 2014 16:17
Show Gist options
  • Save jbdietrich/9273903 to your computer and use it in GitHub Desktop.
Save jbdietrich/9273903 to your computer and use it in GitHub Desktop.
$(function(){
var tagMap = { "An Organization of Extraordinary Gentlemen": ["peg_leg", "mast"] };
var currentOrg = HelpCenter.user.organizations.length ? HelpCenter.user.organizations[0].name : null;
if (currentOrg) {
$('body').on('DOMNodeInserted', 'ul', function(event){
for (var i = 0; i < tagMap[currentOrg].length; i++) {
$('#' + tagMap[currentOrg][i]).remove();
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment