Thank you for good macro. Removing duplicate lines is very nice and useful feature, which EmEditor lacks badly. I hope you’ll add it in future release.
As for JS macro provided, it has one small “glitch”. When duplicate line is the last one this macro doesn’t recognize it. For example:
There’s no new line after second “Badger”, so it won’t delete it.