Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hide kissmetrics events
// Run inside Chrome DevTools to mass hide events matching eventName
var removeEvents = function (eventName) {
h3s = document.querySelectorAll("div.section h3");
var rtcElems = [];
for (var i = 0; i < h3s.length; i++) {
var h3 = h3s[i];
if (h3.innerHTML.indexOf(eventName) !== -1) {
rtcElems.push(h3.parentElement);
}
}
console.log("Found %s events", rtcElems.length)
for (var i = 0; i < rtcElems.length; i++) {
var rtcElem = rtcElems[i];
rtcElem.querySelector("input.checkbox").checked = false;
rtcElem.querySelector("a.green.button").click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.