From e588bbf7f9dfc1a42e6579ae5c50a01ef1c913d4 Mon Sep 17 00:00:00 2001 From: Glorfindel Date: Fri, 1 Dec 2017 11:09:09 +0100 Subject: [PATCH] v0.4.1 "insur" should be enough --- destroy-spammer/destroy-spammer.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/destroy-spammer/destroy-spammer.user.js b/destroy-spammer/destroy-spammer.user.js index 6ee8c9f..c1ff23b 100644 --- a/destroy-spammer/destroy-spammer.user.js +++ b/destroy-spammer/destroy-spammer.user.js @@ -3,7 +3,7 @@ // @namespace https://github.com/Glorfindel83/ // @description Adds a 'Destroy spammer' link for moderator on user profiles with only deleted posts. // @author Glorfindel -// @version 0.4 +// @version 0.4.1 // @match *://*.stackexchange.com/users/* // @match *://*.stackoverflow.com/users/* // @match *://*.superuser.com/users/* @@ -34,7 +34,7 @@ var deletedAnswers = answersPanel.find('td.answer-hyperlink.deleted-answer').length; if (undeletedAnswers > 0) // User has content - use the dialog instead return; - if (deletedQuestions + deletedAnswers == 0 && !userName.contains("Insurance")) // User has no deleted content - use the dialog instead + if (deletedQuestions + deletedAnswers == 0 && !userName.toLowerCase().contains("insur")) // User has no deleted content - use the dialog instead return; if (deletedQuestions + deletedAnswers > 4) // User has too much deleted content - use the dialog instead return;