Skip to content

Instantly share code, notes, and snippets.

@gomasy
Created June 21, 2015 12:02
Show Gist options
  • Save gomasy/4e9be8eac8d562076765 to your computer and use it in GitHub Desktop.
Save gomasy/4e9be8eac8d562076765 to your computer and use it in GitHub Desktop.
var notify = document.getElementsByClassName("js-column column column-type-interactions will-animate");
for (var i = 0; i < notify.length; i++) {
var t = notify[i].getElementsByClassName("stream-item js-stream-item is-actionable");
for (var j = 0; j < t.length; j++) {
setDisplay(t[j], new RegExp(/retweeted_retweet.+/));
setDisplay(t[j], new RegExp(/favorited_retweet.+/));
}
}
function setDisplay(elm, regexp) {
if (elm.dataset.key.match(regexp) != null) {
elm.style.display = "none";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment