There’s also a browser extension which does the same thing, but attempts to be a bit more content-aware: https://popupoff.org