by TommyJefferson » Sat 27 Sep 2008, 08:46:15
$this->bbcode_second_pass_quote('Hogan', 'c')ompletely hiding any topics started by people on the ignore list
I agree. This one small modification to the forum software would tremendously improve the majority of users' participation experience.
Here is a mod that might work:
$this->bbcode_second_pass_code('', ' // ==UserScript==
// @name User Classes
// @include http://forums.mozillazine.org/viewtopic.php*
// @description Adds a class to facilitate hiding a user's posts
// @exclude
// ==/UserScript==
(function() {
// Ignore posts
var results = document.evaluate("//td[@class='avatar']/span/b", document, null, XPathResult.ANY_TYPE, null);
var resultNodes = [];
while (aResult = results.iterateNext())
resultNodes.push(aResult);
for (var i in resultNodes) {
var containingRow = resultNodes[i].parentNode.parentNode.parentNode;
containingRow.setAttribute('class', 'phpbb_user_' + resultNodes[i].innerHTML.replace(/ /g, ''));
var nextRow = containingRow.nextSibling;
while (nextRow.nodeType != 1)
nextRow = nextRow.nextSibling;
nextRow.setAttribute('class', 'phpbb_user_' + resultNodes[i].innerHTML.replace(/ /g, ''));
}
// Ignore threads
var results = document.evaluate("//td[@class='vf2']/span[@class='name']", document, null, XPathResult.ANY_TYPE, null);
var resultNodes = [];
while (aResult = results.iterateNext())
resultNodes.push(aResult);
for (var i in resultNodes) {
var containingRow = resultNodes[i].parentNode.parentNode;
containingRow.setAttribute('class', 'phpbb_user_' + resultNodes[i].innerHTML.replace(/ /g, ''));
var nextRow = containingRow.nextSibling;
while (nextRow.nodeType != 1)
nextRow = nextRow.nextSibling;
nextRow.setAttribute('class', 'phpbb_user_' + resultNodes[i].innerHTML.replace(/ /g, ''));
}
})();
')