A conveniently synthesized redox-active fluorescent covalent organic framework for selective detection and adsorption of uranium.