monkdiscuss
chacham
<p>[id://16082] only works for the displayed CB. [id://596792] goes unfettered, but maybe the following [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/|Greasemonkey] script can help with that.</p> <p>[https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it|TMTOWTDI]. The first /* commented out */ method uses <del> to strike the names and texts. The second deletes the rows entirely.</p>
<p>The included script ignores [paco] and [NodeReaper], two notorious monks that just say the oddest things. Kudos to [Tanktalus] for the history itself.</p>
<p>Disclaimer: I mostly googled this one together.</p>
<c>
// ==UserScript==
// @name cb history Ignore
// @namespace http://www.example.com/chacham/
// @description strikeout of remove ignored users from last hour of cb
// @include http://perlmonks.org/?node_id=596792
// @grant none
// ==/UserScript==
var ignore = ['paco' , 'NodeReaper'];
/*
// encapsulate in <del>
var author = document.getElementsByClassName('cb_author');
for (var i = 0; i < author.length; i++)
for (var j in ignore)
if (author[i].children[0].text == ignore[j])
{
author[i].innerHTML = '<del>' + author[i].innerHTML + '</del>';
author[i].parentElement.parentElement.children[1].innerHTML = '<del>' + author[i].parentElement.parentElement.children[1].innerHTML + '</del>';
}
*/
// remove rows
var table = document.getElementsByClassName('cb_author')[0].parentElement.parentElement.parentElement.parentElement;
for (var i = (table.rows.length -1) ; i >= 0; i--)
if(ignore.indexOf(table.rows[i].cells[0].children[1].children[0].text) != -1)
table.deleteRow(i);
</c>
<p>UPDATE: [ambrus]'s [id://1125165|comment] below seems far superior.</p>