This isn't exactly the most effective method, since the elements come back when you reload the page.
Most modern browsers have 'inspect element' (excluding IE of course, since Microsoft prefer to lag behind on everything they do.)
Much like every other browser, inspect element is only used to edit the source code (or CSS) of the page you're viewing, which means that once you refresh or browse away from the page it'll reload the original source code including the ads.