let us ignore, kick, or ban players in tileschat


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Blades Runner

Posts: 548

Joined: Monday, 23rd March 2015, 05:29

Post Wednesday, 6th July 2016, 22:35

let us ignore, kick, or ban players in tileschat

let us ignore players in any chat, and let us kick or ban them from chatting in our own games. reasoning is self-explanatory i think.

For this message the author yesno has received thanks:
Arrhythmia

Dungeon Master

Posts: 1051

Joined: Thursday, 12th June 2014, 05:19

Post Wednesday, 6th July 2016, 23:47

Re: let us ignore, kick, or ban players in tileschat

this may or may not be a feature in webtiles-changes, the legendary branch that will never be merged

it's a long-standing fr regardless

Blades Runner

Posts: 548

Joined: Monday, 23rd March 2015, 05:29

Post Thursday, 7th July 2016, 03:20

Re: let us ignore, kick, or ban players in tileschat

webtiles-changes... Image

Dungeon Master

Posts: 585

Joined: Sunday, 9th June 2013, 17:13

Post Thursday, 7th July 2016, 03:52

Re: let us ignore, kick, or ban players in tileschat

It's not a feature in webtiles-changes; the features in webtiles-changes are too epic to be believed, including such wonders as server configuration refactoring. It's something that's been talked about for some time, but there are some technical issues as to how it would work given how easy it is to create accounts. It's something that's not being worked on right now and isn't a high priority. Maybe someday we'll get someone who wants to do a lot of webtiles work, but until then...

Blades Runner

Posts: 548

Joined: Monday, 23rd March 2015, 05:29

Post Thursday, 7th July 2016, 04:07

Re: let us ignore, kick, or ban players in tileschat

oh well, i guess if it were so easy to implement it would be in already... tho fwiw, even if it were easy to work around by creating new accounts that wouldn't be a big deal... it's not like i'm being stalked and harassed by anyone, there are just sometimes users whose messages i would rather not view. so just ignore without any kick or ban functions would be good... don't know how tough that would be... the tileschat stuff is in python, right? i have been learning a bit, maybe i could give it a try later this year...
User avatar

Zot Zealot

Posts: 982

Joined: Monday, 29th September 2014, 09:04

Post Thursday, 7th July 2016, 09:15

Re: let us ignore, kick, or ban players in tileschat

The quickest way to get this for yourself would be to write some client-side javascript bookmarklet which can take a username and reactively delete a user's messages as they come into your chat window.

Crypt Cleanser

Posts: 747

Joined: Friday, 6th January 2012, 12:30

Post Friday, 8th July 2016, 00:48

Re: let us ignore, kick, or ban players in tileschat

chequers wrote:The quickest way to get this for yourself would be to write some client-side javascript bookmarklet which can take a username and reactively delete a user's messages as they come into your chat window.

Well this took a lot longer than expected. I don't even need to block anyone myself. Use your favorite script addon/extension to make this run. The most common script addons are greasemonkey for ff and tampermonkey for chrome. Remove the UserScript header if you're using some other way to run js that doesn't need the header. If you keep the header, you can replace the '@include *' with the server url like '@include http://crawl.akrasiac.org:8080/*'. Add users to ignore to the ignored list.

  Code:
// ==UserScript==
// @name        webtiles_chat_ignore
// @namespace   wew
// @include     *
// @version     1
// @grant       none
// ==/UserScript==

var ignored = ["users", "i", "dislike"];

var observer = new MutationObserver(function(mutations) {
  mutations.forEach(function(mutation) {
    if (mutation.target.id == 'chat_history') {
      if (mutation.type == 'childList') {
        if (mutation.addedNodes.length >= 1) {
          var blockUser = false;
          for (var i = 0; i < ignored.length; i++) {
            if (mutation.addedNodes[0].textContent == ignored[i]) {
              blockUser = true;
              break;
            }
          }
          if (blockUser) {
            for (var i = 0; i < 4; i++) {
              mutation.addedNodes[i].parentNode.removeChild(mutation.addedNodes[i]);
            }
          }
        }
      }
    }
  });
});

var observerConfig = {
        childList: true, subtree: true
};

var targetNode = document.body;
observer.observe(targetNode, observerConfig);

For this message the author Wahaha has received thanks: 5
chequers, Implojin, neil, PleasingFungus, yesno

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 92 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.