Player Mute in Chat/ Chat Highlighter [userscript]
-
Thread created on 22:36:04 - 07/05/15 (11 years ago)|Last replied 21:35:10 - 07/02/18 (8 years ago)So some might like this others will think it's dumb. A faction mate asked if there was a way to mute players in chat so I wrote this and sent it to him so he could mute "the person" xP
All you have to do is replace IDHERE with their player ID
Player Mute download
To remove everything use this:
Player Remover download
Here I've muted lolcatz because he was being stupid and WillieNelson just to test that it worked for multiple players and chats.
Not really worthy of a new thread imo so I'll just add it.Chat Highlighter
Replace URNAME with your name or a shortened version and any line in chat containing that will be highlighted, this is case insensitive. I for example use psy. The default color is greenyellow but this could be replaced with any seen here.
Chat Highlighter download
Below I have URNAME set to Go
SpAm Remover:
Thanks to our recent friend in global I tweaked this script.
// ==UserScript==
// @name SpAm Remover
// @namespace Player Remover
// @include *torn.com/*
// @version 0.01
// @grant none
// ==/UserScript==
window.setInterval(function()
{
$("div[class^='chat-box'] div[class^='message'] span:contains('@@@')").parent().remove();
},500);
This line can be repeated and changed if he starts saying something new.
ex:
// ==UserScript==
// @name SpAm Remover
// @namespace Player Remover
// @include *torn.com/*
// @version 0.01
// @grant none
// ==/UserScript==
window.setInterval(function()
{
$("div[class^='chat-box'] div[class^='message'] span:contains('@@@')").parent().remove();
$("div[class^='chat-box'] div[class^='message'] span:contains('bla bla')").parent().remove();
},500);
now messages containing either @@@ or bla bla will be removed from chat.Last edited by PsycWard on 11:28:47 - 20/04/19 (7 years ago) -
-
Posted on 22:40:29 - 07/05/15 (11 years ago)Post link copied to clipboard Copy post linkI finally made it mam!!!
Are you happy for me now!!!! -
-
Posted on 22:55:36 - 07/05/15 (11 years ago)Post link copied to clipboard Copy post linkBut it still shows their name
-
-
Posted on 23:00:24 - 07/05/15 (11 years ago)Post link copied to clipboard Copy post linkI left that because if you mute a faction mate then chain and nothing at all shows it might mess up a bonus.
But I have added that version to the bottom now.Last edited by PsycWard on 23:11:53 - 07/05/15 (11 years ago) -
-
-
-
Posted on 04:08:15 - 08/05/15 (11 years ago)Post link copied to clipboard Copy post linkl33t hax0r
-
-
Posted on 04:35:08 - 08/05/15 (11 years ago)Post link copied to clipboard Copy post linkJust perfect.
Amazing stuff right here.
-
-
Posted on 14:53:21 - 08/05/15 (11 years ago)Post link copied to clipboard Copy post linkchat highligher addedLast edited by PsycWard on 15:11:41 - 08/05/15 (11 years ago)
-
-
Posted on 21:04:51 - 23/04/16 (10 years ago)Post link copied to clipboard Copy post linkI can't seem to get the Highlight script to work...If I want it to Highlight anything containing the word 'Selling' how would I go about that?
-
-
Posted on 22:53:28 - 23/04/16 (10 years ago)Post link copied to clipboard Copy post linkI only use chrome but this works for me:
// ==UserScript==
// @name Chat Highlighter
// @namespace Chat Highlighter
// @include *torn.com/*
// @version 0.01
// @grant none
// ==/UserScript==
$.extend($.expr[':'], {
'containsi': function(elem, i, match, array)
{
return (elem.textContent || elem.innerText || '').toLowerCase()
.indexOf((match[3] || "").toLowerCase()) >= 0;
}
});
window.setInterval(function() {
$("div.chat-box div.message span:containsi(Selling)").css("background","greenyellow");
},500); -
-
Posted on 01:40:05 - 30/05/16 (10 years ago)Post link copied to clipboard Copy post linkWorks Great! Thanks Psyc
Semper Fidelis / Seize Sector 7 Alliance
-
-
Posted on 12:18:25 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkMulti bombed in the night very impressive whoever you are but why stop at 12?



-
-
Posted on 12:46:49 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkReport Everyone!!
Hopefully the main will get fedded for sometime too -
-
Posted on 12:50:30 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkI was too lazy too check more than 4 of them but they were all 0 days old and 999 fed when I woke. Not sure if it was random or I made a new friend I guess only time will tell :)
-
-
Posted on 12:59:04 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkDid your enemy count increase too?
-
-
Posted on 13:05:29 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkThat's a lot of haters.
Good luck.Last edited by du48gune on 13:06:11 - 31/05/16 (10 years ago) -
-
Posted on 13:15:42 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkI never even thought to look, no new enemies but I did lose a friend...RIP mystery fri :'(
-
-
Posted on 13:58:55 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkDon't worry, you are still on my list [:tongue:]
-
-
Posted on 19:20:09 - 31/05/16 (10 years ago)Post link copied to clipboard Copy post linkDue to recent spamming I have added SpAm Remover to the bottom. It's the same as the player remover it just targets the text in the chat instead of the player ID. If the spammer changes their message you could just add another line in under to remove both messages.
-



