A simple AIE chemosensor based on diphenyl imidazole scaffold for 2,4,6-trinitrophenol detection and dye absorption.