Jump to content

someone make me a script for the chatbox that doesnt show messages from specific people


Recommended Posts

Posted (edited)
8 hours ago, Soldtodie said:

This is only the content script.


var blocked = ["FrostBug", "Ragme", "upotudrop", "Ahmad Diab", "uta", "Xylate", "HeyImJamie"];

remove();

function remove() {
    var elements = document.getElementsByTagName("small");

    for (var i = 0; i < elements.length; i++) {
        var name = elements[i].children[0].children[0].children[0].innerText.toString();

        for (var b = 0; b < blocked.length; b++) {
            if (name === blocked[b]) {
                elements[i].parentElement.remove();
                break;
            }
        }
        
    }

    setTimeout(remove, 100);
}

Or full chrome extension(source):

https://www.sendspace.com/file/d2ehc1

wow this ********a put in frostbug

 

lemme try it

 

edit: works

Edited by Acerd
  • Like 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...