« first day (723 days earlier)      last day (701 days later) » 

7:16 AM
Is there a reliable way to detect when a post is closed as a duplicate?
SECVRG has this code
const postNoticeIsDuplicateClosure = postNotices.filter(function() {
return /already has (?:an answer|answers)|close\/reopen/i.test($(this).text());
}).length > 0;
but it seems it doesn't always accurately detect dupe closures
 
 
2 hours later…
9:05 AM
@blackgreen can you use the API?
 
Not yet, I'm doing everything without the API at this time
 
 
3 hours later…
12:24 PM
I would check if .question-hyperlink text content endsWith the text [duplicate], @blackgreen
 
1:23 PM
@OlegValteriswithUkraine good idea, I’ll try that
 
that's still going to be a bit brittle, of course, but titles with manual status notes don't survive for long either way, so it's unlikely you'll run into trouble :)
unless SE changes something again, that is
 

« first day (723 days earlier)      last day (701 days later) »