Paste JS from one page at a time. It finds every localStorage.clear() call, figures out which keys are actually used nearby, and shows the targeted removeItem() replacement.
localStorage.clear()
removeItem()