FilterOrdinaryTimesCommenters

Filter out comments for selected commenters at Ordinary Times

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        FilterOrdinaryTimesCommenters
// @namespace   kenb
// @include     http://*ordinary-gentlemen.com/*
// @description Filter out comments for selected commenters at Ordinary Times
// @version     1
// @grant       none
// ==/UserScript==


/*

  Replaces the comment text for specified commenters on the
  Ordinary Times blog (nee Ordinary Gentlemen) with "Comment Removed"
  
  Change the regular expression in the commenterPattern variable to control
  which commenters should be ignored -- to just do exact matching, separate
  each commenter handle with a pipe (|). 
*/

var commenterPattern = /data-name="(Commenter1|Commenter2)"/i;
var thisComment;


var allComments = document.getElementsByClassName('comment-content');

for (var i=0; i < allComments.length; i++) 
 	 {
		thisComment = allComments[i];         
        if (commenterPattern.test(thisComment.innerHTML) ) {
            thisComment.innerHTML='<p>Comment Removed</p>';

        }
                
 	}