I received some requests for this and I am glad to share code.
However, I do not want to provide support individually for anyone who uses it.
This script will hide the posts of users of the forum when their user id is part of the script:
Its limitations:
* When you are posting on a thread, the last posts which are under the textarea are visible. If you do not want to see a person's words at all, this is a bug. If you want to occasionally see them when you choose, this is a way to see them.
* You can see the post area, but it is all blank. You can see the blank area, but you can't quote it or see any of the contents, including the person's information on the left.
All of these limitations could be overcome, but I never had a reason to do that. If people are interested (which I doubt), I could develop the idea further.
I only use it on a single browser, Opera, but it should work in all browsers which follow standards.
For the people who are interested, apply this custom ECMAScript to this forum. The general way of doing this is to apply this script as a custom script for the fisheaters domain (or the forum's subdomain). You can ask me how to do that, but I will just google it and then give a link to the process, so you should should read the documentation for your browser yourself.
Open a text editor and save the follow text as I wrote it (copy and paste it exactly) as "dk.js". In Windows, if you click on it, it will probably be opened with whatever it is which would execute the script.
Note, you should change the value of UID to the user id of the user you want to block. You can add more users as well to this array. Just separate the values by commas and put the value in quotes.
/*******************************************************************************
dk.js:
Copyright (C) 2011 J. F. O'Neill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
function hidePost(UID)
{
var UIDString = "http://catholicforum.fisheaters.com/index.php?action=pm;sa=send;u=" + UID;
var allLinks = document.getElementsByTagName('a');
for (var i = 0; i < allLinks.length; i++)
{
if (allLinks[i].getAttribute('href') == UIDString)
{
allLinks[i].parentNode.parentNode.parentNode.parentNode.style.visibility = 'hidden';
}
}
}
window.onload = function()
{
var UID = ["998657"];
for (var i = 0; i <= UID.length; i++)
{
hidePost(UID[i]);
}
return true;
}
This post has been edited to include a better version after some people were overly amused by the way one could break the script by changing avatars.
Here is the original version which goes by avatar:
/*******************************************************************************
dk.js:
Copyright (C) 2011 J. F. O'Neill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
window.onload = function()
{
var avatarURI = "http://catholicforum.fisheaters.com/useravatars/avatar_998657.png"
var allImages = document.getElementsByTagName('img');
for (var i = 0; i < allImages.length; i++)
{
if (allImages[i].getAttribute('src') == avatarURI)
{
allImages[i].parentNode.parentNode.parentNode.parentNode.style.visibility = 'hidden';
allImages[i].onclick = function()
{
}
}
}
return true;
}