The problem is although it appears as if it is a pop up, it is actually just HTML giving the impression it's a pop up. It is often called an overlay. Meaning on some sites, it will be junk (as per the screen shot), but other sites very much required (like a shopping basket preview screen).
For FireFox and Chrome, there is a plugin called BehindTheOverlay
which may give you what you want (similar to AdBlocker but for overlay). Chrome also has an extra plugin called overlay blocker
. It is not perfect for many reasons and as already mentioned, do it at your own risk (as it may stop some sites working as intended).
Lastly, AdBlock plus may be able to help as it can be customised, see this forum for more detail https://adblockplus.org/forum/viewtopic.php?t=18595
You also have the option of disabling JavaScript. I know this is unlikely to suffice, but it's still an option.
1Pretty sure you will have to disable javascript to stop those kinds of Ajax modal-style pop-ups. – bfhd – 2012-06-07T00:05:53.247
block out jquery ;) – HackToHell – 2012-06-10T14:46:35.267