2 // @name Kiwiirc Annoyance Removal
3 // @description remove user has joined prompts.
4 // @namespace http://tampermonkey.net/
6 // @description try to take over the world!
8 // @match *://kiwiirc.com/client/irc.sageru.org/*
9 // @updateURL https://github.com/ECHibiki/Misc-UserScripts/raw/master/Kiwiirc-Annoyance-Removal.user.js
10 // @downloadURL https://github.com/ECHibiki/Misc-UserScripts/raw/master/Kiwiirc-Annoyance-Removal.user.js
13 console.log(document.body);
17 var nodes = Array.from(document.body.getElementsByClassName('msg'));
18 //console.log("rdfg");
20 if(document.body.classList.contains('msg')){
21 nodes.unshift(document.body);
24 nodes.forEach(function(node){
25 var nodeList = node.childNodes;
26 if(nodeList[2].textContent.indexOf('_other_users is now known as') <= -1){
27 //nodeList[1] = nodeList[0] + "::" + nodeList[1];
36 //console.log(document.body);
38 new MutationObserver(function(mutations){
39 mutations.forEach(function(mutation){
40 mutation.addedNodes.forEach(alterPage);
42 }).observe(document.body, {childList: true, subtree: true});