Last active
August 29, 2015 14:14
-
-
Save johanalkstal/1b1ce3d508928f390411 to your computer and use it in GitHub Desktop.
JabbR Ignore bookmarklet
This file contains 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
javascript: (function() { | |
var interval = 1000; | |
var users = ['username']; | |
setInterval(function() { | |
users.forEach(function(user) { | |
var messages = document.querySelectorAll('li.message[data-name="' + user + '"]'); | |
for(var i = 0; i < messages.length; i++) { | |
messages[i].remove(); | |
} | |
}); | |
}, interval); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment