Comments that may be auto-deleted

0

Please login or register to vote for this query.

(click on this box to dismiss)

For ModBatchCommentDeleter userscript users: Run with preferred parameters, then download the CSV results and insert into /admin/deleter on your site.

Computational Science Meta

Q&A about the site for scientists using computers to solve scientific problems

SELECT TOP ##Limit:int?100##
  LOWER(c.Text) AS [Text],
  'site://posts/comments/' + CONVERT(nvarchar(20),c.Id) AS [Comment Permalink]
FROM Comments c
  INNER JOIN Posts p ON c.PostId = p.Id
  INNER JOIN Posts p1 on p.ParentId = p1.Id
WHERE
  p.PostTypeId = 2 AND -- 2 = Answer
  LEN(Text) >= ##MinCommentLength:int?15## AND
  LEN(Text) <= ##MaxCommentLength:int?15## AND
  (Text LIKE '+1%' OR Text LIKE '-1%' OR Text LIKE 'thank%' OR Text LIKE '%welcome%' OR Text LIKE '%solve%' OR Text LIKE '%vote%') AND
  p1.ClosedDate IS NULL AND
  c.CreationDate < DATEADD(dd, -##MinCommentAgeDays:int?30##, GETDATE())
ORDER BY c.CreationDate ASC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results