ChatBlockButton is a script which creates a button in chat that enables the user to block a user then kick them (the kick is only performed if the user being blocked is in chat at the time). As with regular blocking, it can only be done if you are an admin.
The first version adds the button to the end of the text area, while the second version adds it as an option akin to kick and ban when clicking on a user in chat.
To install this script add the following to your global.js on Community Central:
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.