FANDOM


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.

Installing

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";

Known Bugs

  • 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.
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+