How to remove thread notifications in shout

HIBred

Foolish Mortal
|K3| Executive
Hello Krew and site members, being that the poll was not quite a landslide and Null was kind enough to provide a script to address the issue if you should so choose,here is a how -to on implementing the script that null provided;
if you are a noob like me and don't know scripting you may use an extension in your browser to make things easier
Chrome ext :Tampermonkey
Firefox ext:Greasemonkey
1) add extension and enable
2)add script via copy paste and enable
3) restart browser voila!

I used the tampermonkey one in chrome it was super easy :just make sure to click the enable boxes after you add the script..in the right corner is the Tamermonkey button hover nd click add script,paste the script below ,install, then click installed scripts button and check box on the left and choose action ..choose enable,then click start, restart chrome(or firefox)


Strip all thread notifications:
Code:
// ==UserScript==
// @name Disable thread notifications in shoutbox
// @namespace nu11ifi3d
// @description Remove thread notifications from the shoutbox on KrewGaming.com
// @include http://krewgaming.com/*
// @version 1
// @grant none
// ==/UserScript==
function taigaRemoveThreads() {
var messages = document.getElementById('taigachat_box').getElementsByTagName('li');
for (var i = 0; i < messages.length; i++) {
if (messages.innerHTML.indexOf('internalLink') > 0) {
messages.style.display = 'none';
}
} setTimeout(function () { taigaRemoveThreads(); }, 100);
} taigaRemoveThreads();
Strip thread notifications by title:
Code:
// ==UserScript==
// @name Disable thread notifications by title in shoutbox
// @namespace nu11ifi3d
// @description Remove thread notifications by title from the shoutbox on KrewGaming.com
// @include http://krewgaming.com/*
// @version 1
// @grant none
// ==/UserScript==
function taigaRemoveThreads() {
var blockedThreads = [
"Last Comment Wins"
];
var messages = document.getElementById('taigachat_box').getElementsByTagName('li');
for (var i = 0; i < messages.length; i++) {
if (messages.innerHTML.indexOf('internalLink') > 0) {
for (var y = 0; y < blockedThreads.length; y++) {
if (messages.innerHTML.indexOf(blockedThreads[y]) > 0) {
messages.style.display = 'none';
}
}
}
} setTimeout(function () { taigaRemoveThreads(); }, 100);
} taigaRemoveThreads();


or check this thread for cleaner copy paste
http://krewgaming.com/threads/10765/page-2#post-184970
 

WaLLy

Lieutenant General
|K3| Executive
You might want to use the BBcode >> Code. Above the quick reply box, there's a + sign. Click it, select Code and enter the stuff into the box.
Code:
Coding stuff goes here
edit:
or else, the stuff may not work, due to format.
 

HIBred

Foolish Mortal
|K3| Executive
Code:
// ==UserScript==
// @name        Disable thread notifications in shoutbox
// @namespace   nu11ifi3d
// @description Remove thread notifications from the shoutbox on KrewGaming.com
// @include     http://krewgaming.com/*
// @version     1
// @grant       none
// ==/UserScript==
function taigaRemoveThreads() {
    var messages = document.getElementById('taigachat_box').getElementsByTagName('li');
    for (var i = 0; i < messages.length; i++) {
        if (messages[i].innerHTML.indexOf('internalLink') > 0) {
            messages[i].style.display = 'none';
        }
    } setTimeout(function () { taigaRemoveThreads(); }, 5000);
} taigaRemoveThreads();
[/QUOTE]
 

WaLLy

Lieutenant General
|K3| Executive
There are also a few of them that @null posted. You might want to include the ones that allow you to only remove certain threads, to avoid confusion. I know some people, like myself, only want certain threads gone. The ones you've posted so far remove everything XD
 
Last edited:

HIBred

Foolish Mortal
|K3| Executive
Ask and you shall receive! This version allows you to define a list of threads to block by thread title (case-sensitive). I've set it up to block the 'Last Comment Wins' style out of the box, so no further config. is required if that's all you're after.

Code:
// ==UserScript==
// @name        Disable thread notifications in shoutbox
// @namespace   nu11ifi3d
// @description Remove thread notifications from the shoutbox on KrewGaming.com
// @include     http://krewgaming.com/*
// @version     1
// @grant       none
// ==/UserScript==
function taigaRemoveThreads() {
    var blockedThreads = [
        "Last Comment Wins"
    ];
    var messages = document.getElementById('taigachat_box').getElementsByTagName('li');
    for (var i = 0; i < messages.length; i++) {
        if (messages[i].innerHTML.indexOf('internalLink') > 0) {
            for (var y = 0; y < blockedThreads.length; y++) {
                if (messages[i].innerHTML.indexOf(blockedThreads[y]) > 0) {
                    messages[i].style.display = 'none';
                }
            }
        }
    } setTimeout(function () { taigaRemoveThreads(); }, 5000);
} taigaRemoveThreads();

To add more threads to your ignore list, you'll want to edit the var blockedThreads variable at the top. For example, if I want to block 'What are you listening to?' and 'funny pics' (just an example :p), I'd do:

Code:
var blockedThreads = [
    "Last Comment Wins",
    "What are you listening to?",
    "funny pics"
];

Notice that you wrap the thread title in quotes and separate new items with a comma. It's a bit easier to read if you put each thread title on its own line as well. Hope that helps!
 

DamageINC

K3's Useless Admin
|K3| Executive
I couldn't find the + sign , but using [ code] text here [ /code] (no spaces) is what worked for me. Where is the + sign? All i see is BB code editor.
 

WaLLy

Lieutenant General
|K3| Executive
You must be using the Blackend theme then. Here's what I'm referring to
A4OfNrl.png

I use the Flat Awesome Dark theme, so this is what mine looks like
VVbz47E.png
 
Top Bottom