Skip to content

Instantly share code, notes, and snippets.

@MinimaJack
Created September 22, 2015 05:47
Show Gist options
  • Save MinimaJack/bfc23e4e0ab7a6259116 to your computer and use it in GitHub Desktop.
Save MinimaJack/bfc23e4e0ab7a6259116 to your computer and use it in GitHub Desktop.
javascript: (function () {
var n = prompt("Name");
n = n + ":";
$("ul.messages li").each(function( index ) {
if( $( this ).find( "span:first" ).text() == n){
$( this ).remove();
}
});})();
@MinimaJack
Copy link
Author

javascript: (function () {
    var n = "OVST";
    n = n + ":";
    setInterval(function () {
        $("ul.messages li").each(function (index) {
            if ($(this).find("span:first").text() == n) {
                $(this).remove();
            }
        })
    }, 100);

})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment