.
//Be sure to download your full blog template as a backup before attempting to change your blog template.
(function () {
var commentList, bannedProfileIdList, bannedNameUrlList, replacementAuthor, replacementBody,
isBadGuy, isBadGuy2, commentAuthors, commentBodies, i, j;
// make sure we even *have* comments to worry about first
commentList = document.getElementById('comments-block');
// if no comments, just bail
if (commentList) { //will not do anything if there is no commentList
// Admins, add, delete, change the following list of Blogger account IDs to
// control who is 'banned', at least in post views. (Comment Post page
// will still show comments from these users.)
bannedProfileIdList = [
//ADD NEW PROFILE ID BELOW HERE, Example: 'ProfileId', // Bad Guy Name
//ADD NEW PROFILE ID ABOVE HERE
'00029011575598981492', // Davi 25 Nov 2010
'17130045346460349843', // Dalbert 24 Nov 2010
'04359633411932680134', // Dennis 24 Nov 2010
'06305438537702906437', // David 23 Nov 2010
'17635603830646355256', // DM 20 Nov 2010
'00576330145736710055', // Dennis 16 Nov 2010
'14311046042795941951', // Dennis as 'Felix' 14 Nov 2010
'13984361647367222144', // Dennis 14 Nov 2010 on Helen's blog
'02917218521149281105', // Dav 13 Nov 2010
'00532888325841953106', // Dennis 10 Nov 2010
'13984361647367222144', // Dennis 8 Nov 2010
'15461624825432248962', // Dava 8 Nov 2010
'16174022970720050232', // ZViolate 8 Nov 2010
'02698079860213574889', // DM 8 Nov 2010
'16247404092985882680', // Dave Mabus Nov 2010
'04993951266598209546', // DM posing as Atheist Wars
'06653906240497605376', // DM
'11389651479904502758', // DM
'09717778488129753119' // DM - Dave Mabus/David Markuze. OK to replace, but don't add a comma to the end.
].join('|');
// Admins, add, delete, change the following list of identifiers for commenters who are using other
// registration services such as OpenId or Wordpress, or just a particular name to control
// who is 'banned', at least in post views. Try to narrow the identifier down to a unique string of
// numbers, letters, colons (:), forward slashes (/), and periods (.). Other characters are not
// guaranteed to work and might break the script.
bannedNameUrlList = [
//ADD NEW IDENTIFIER BELOW HERE, Example: 'www.mywebsite.com', // Bad Guy X
//ADD NEW IDENTIFIER ABOVE HERE
'blah12blah6582blah', // Fake bad guy's name, OK to delete
'blah12.blah6582.com', // Fake bad guy using a website to register comments at your blog, OK to delete
'blah12.blah65.82blah' // Fake OpenId, OK to replace but don't add a comma to the end.
].join('|').replace(/\./g, '\\.').replace(/\//g, '\\/');
//Admins, change the replacement HTML for the Author's Name and their Comment here
// by modifying the HTML inside the following single quotes (single quotes may not be in the new HTML):
replacementAuthor = '
[This person has been banned from commenting because of making threats of violence to the blog writer.]
';
replacementBody = '
[Comment removed by moderator policy.]
';
isBadGuy = new RegExp('profile\\/(' + bannedProfileIdList + ')');
isBadGuy2 = new RegExp('(' + bannedNameUrlList + ')');
commentAuthors = commentList.getElementsByTagName('dt');
commentBodies = commentList.getElementsByTagName('dd');
// cycle through the comment nodes
for (i = 0, j = commentAuthors.length; i < j; i++) {
if (isBadGuy.test(commentAuthors[i].innerHTML) || isBadGuy2.test(commentAuthors[i].innerHTML)) {
//if a match to a badGuy is found, replace it with the administrative HTML
commentAuthors[i].innerHTML = parseHTML(replacementAuthor);
commentBodies[i * 2].innerHTML = parseHTML(replacementBody);
}
}
}//end if (commentList)
}());
//]]>