Player Mute in Chat/ Chat Highlighter [userscript] | Tools & U…

Player Mute in Chat/ Chat Highlighter [userscript]

​

    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 25
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    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)
    • lolcatz [1829524]
    • Role: Civilian
    • Level: 70
    • Posts: 50
    • Karma: 61
    • Last Action: 5 years
      • 3
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:40:29 - 07/05/15 (11 years ago)
    Post link copied to clipboard Copy post link
    I finally made it mam!!!
    Are you happy for me now!!!!
    • TheDarkLegacy [1712562]
    • Role: Civilian
    • Level: 56
    • Posts: 4,470
    • Karma: 1,923
    • Last Action: 8 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:55:36 - 07/05/15 (11 years ago)
    Post link copied to clipboard Copy post link
    But it still shows their name

    First they ignore you, then they laugh at you, then they keep laughing, then they start choking on their laughter, and then they go and catch their breath. Then they start laughing even more.

    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:00:24 - 07/05/15 (11 years ago)
    Post link copied to clipboard Copy post link

    TheDarkLegacy [1712562]

    But it still shows their name
    I 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)
    • TheDarkLegacy [1712562]
    • Role: Civilian
    • Level: 56
    • Posts: 4,470
    • Karma: 1,923
    • Last Action: 8 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:17:12 - 07/05/15 (11 years ago)
    Post link copied to clipboard Copy post link

    TheDarkLegacy [1712562]

    But it still shows their name

    PsycWard [1579270]

    I 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.
    Oh cool

    First they ignore you, then they laugh at you, then they keep laughing, then they start choking on their laughter, and then they go and catch their breath. Then they start laughing even more.

    • Dead--Man [1895400]
    • Role: Civilian
    • Level: 38
    • Posts: 2,528
    • Karma: 1,214
    • Last Action: 9 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:08:15 - 08/05/15 (11 years ago)
    Post link copied to clipboard Copy post link
    l33t hax0r
    • Qwes [1899487]
    • Role: Civilian
    • Level: 31
    • Posts: 257
    • Karma: 388
    • Last Action: 3 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:35:08 - 08/05/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Just perfect.

    Amazing stuff right here.
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:53:21 - 08/05/15 (11 years ago)
    Post link copied to clipboard Copy post link
    chat highligher added
    Last edited by PsycWard on 15:11:41 - 08/05/15 (11 years ago)
    • halberstram [1899754]
    • Role: Civilian
    • Level: 25
    • Posts: 379
    • Karma: 284
    • Last Action: 9 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:29:05 - 26/05/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Really awesome, R+


    Vote for my suggestion here!

    • 1882870 [1882870]
    • Role: Civilian
    • Level: 28
    • Posts: 163
    • Karma: 54
    • Last Action: 10 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:04:51 - 23/04/16 (10 years ago)
    Post link copied to clipboard Copy post link
    I 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?
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:53:28 - 23/04/16 (10 years ago)
    Post link copied to clipboard Copy post link
    I 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);
    • The_Boss [1497907]
    • Role: Civilian
    • Level: 100
    • Posts: 1,906
    • Karma: 2,603
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:40:05 - 30/05/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Works Great! Thanks Psyc

    Semper Fidelis / Seize Sector 7 Alliance

    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 2
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:18:25 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Multi bombed in the night very impressive whoever you are but why stop at 12?



    • Tempest [1867527]
    • Role: Wiki Contributor
    • Level: 100
    • Posts: 7,189
    • Karma: 9,792
    • Last Action: Now
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:46:49 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link

    PsycWard [1579270]

    Multi bombed in the night very impressive whoever you are but why stop at 12? [img width=243 height=191]http://image.prntscr.com/image/56ad67aeecee45d990cf4a466742a08e.png[/img] [img width=245 height=196]http://image.prntscr.com/image/014cf1308f7f4b13b12b944948ea195a.png[/img] [img width=249 height=77]http://image.prntscr.com/image/21ee47ceb78e4a3eb53cb056e3244203.png[/img]
    Report Everyone!!

    Hopefully the main will get fedded for sometime too
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:50:30 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link

    PsycWard [1579270]

    Multi bombed in the night very impressive whoever you are but why stop at 12? [img width=243 height=191]http://image.prntscr.com/image/56ad67aeecee45d990cf4a466742a08e.png[/img] [img width=245 height=196]http://image.prntscr.com/image/014cf1308f7f4b13b12b944948ea195a.png[/img] [img width=249 height=77]http://image.prntscr.com/image/21ee47ceb78e4a3eb53cb056e3244203.png[/img]

    Tempest [1867527]

    Report Everyone!! Hopefully the main will get fedded for sometime too
    I 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 :)
    • Tempest [1867527]
    • Role: Wiki Contributor
    • Level: 100
    • Posts: 7,189
    • Karma: 9,792
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:59:04 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link

    PsycWard [1579270]

    Multi bombed in the night very impressive whoever you are but why stop at 12? [img width=243 height=191]http://image.prntscr.com/image/56ad67aeecee45d990cf4a466742a08e.png[/img] [img width=245 height=196]http://image.prntscr.com/image/014cf1308f7f4b13b12b944948ea195a.png[/img] [img width=249 height=77]http://image.prntscr.com/image/21ee47ceb78e4a3eb53cb056e3244203.png[/img]

    Tempest [1867527]

    Report Everyone!! Hopefully the main will get fedded for sometime too

    PsycWard [1579270]

    I 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 :)
    Did your enemy count increase too?
    • du48gune [1923290]
    • Role: Civilian
    • Level: 27
    • Posts: 690
    • Karma: 143
    • Last Action: 7 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:05:29 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link

    PsycWard [1579270]

    Multi bombed in the night very impressive whoever you are but why stop at 12? [img width=243 height=191]http://image.prntscr.com/image/56ad67aeecee45d990cf4a466742a08e.png[/img] [img width=245 height=196]http://image.prntscr.com/image/014cf1308f7f4b13b12b944948ea195a.png[/img] [img width=249 height=77]http://image.prntscr.com/image/21ee47ceb78e4a3eb53cb056e3244203.png[/img]
    That's a lot of haters.
    Good luck.
    Last edited by du48gune on 13:06:11 - 31/05/16 (10 years ago)
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:15:42 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link

    PsycWard [1579270]

    Multi bombed in the night very impressive whoever you are but why stop at 12? [img width=243 height=191]http://image.prntscr.com/image/56ad67aeecee45d990cf4a466742a08e.png[/img] [img width=245 height=196]http://image.prntscr.com/image/014cf1308f7f4b13b12b944948ea195a.png[/img] [img width=249 height=77]http://image.prntscr.com/image/21ee47ceb78e4a3eb53cb056e3244203.png[/img]

    Tempest [1867527]

    Report Everyone!! Hopefully the main will get fedded for sometime too

    PsycWard [1579270]

    I 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 :)

    Tempest [1867527]

    Did your enemy count increase too?
    I never even thought to look, no new enemies but I did lose a friend...RIP mystery fri :'(
    • Tempest [1867527]
    • Role: Wiki Contributor
    • Level: 100
    • Posts: 7,189
    • Karma: 9,792
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:58:55 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link

    PsycWard [1579270]

    Multi bombed in the night very impressive whoever you are but why stop at 12? [img width=243 height=191]http://image.prntscr.com/image/56ad67aeecee45d990cf4a466742a08e.png[/img] [img width=245 height=196]http://image.prntscr.com/image/014cf1308f7f4b13b12b944948ea195a.png[/img] [img width=249 height=77]http://image.prntscr.com/image/21ee47ceb78e4a3eb53cb056e3244203.png[/img]

    Tempest [1867527]

    Report Everyone!! Hopefully the main will get fedded for sometime too

    PsycWard [1579270]

    I 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 :)

    Tempest [1867527]

    Did your enemy count increase too?

    PsycWard [1579270]

    I never even thought to look, no new enemies but I did lose a friend...RIP mystery fri :'(
    Don't worry, you are still on my list [:tongue:]
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:20:09 - 31/05/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Due 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.
Reply
Thread Title: