Created
June 21, 2015 12:02
-
-
Save gomasy/4e9be8eac8d562076765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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