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.
If you'd like to change the placeholder block reason and/or expiry, you can do so by putting the following variable(s) above the import:
window.chatBlockReason = "ToU violation"; window.chatBlockExpiry = "3 months";
- There seems to be a bug where the button will sometimes not appear for undiscovered reason(s).
- 06-02-17 - Initial code.3.js testing seems to indicate that the issue is resolved.