Skip to content

Instantly share code, notes, and snippets.

@yangsu
Created October 21, 2013 20:24
Show Gist options
  • Save yangsu/7090348 to your computer and use it in GitHub Desktop.
Save yangsu/7090348 to your computer and use it in GitHub Desktop.
Hide Events containing { in eventnames in Mixpanel
var button = $('#sm_hide_event');
var count = 0;
$('.rounded_dropdown_item.dropdown_item_widget').each(function(i, e) {
var text = $(e).text();
if (text.indexOf('{') >= 0) {
$(e).click();
button.click();
count += 1;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment