I am an H1B as well, so I can relate. But ...
Let me make this clear: you are being abused (the terms of H1 visas are effectively abusive for would-be immigrants due to the way they tie you to a specific employer with a very complicated switching process, and reset your green card application if you switch while it's still ongoing), and so you don't like it when other people - who don't get even the abusive option that you do - dodge that?
(And of course being in US as an illegal immigrant is still a very subpar experience to being legal ... hell, just try opening a bank account that way!)
The point is, people tout the illegal status of an immigrant as some kind of huge moral character flaw or failure, sufficient in and of itself to treat them as scum. I'm merely point out that it's not true in general, and specifically depends on how easy it is to immigrate legally for the same person, and how strong are the reasons that prompt them to immigrate. As I'm sure you know full well from your own experience, it's not a light decision to take in the first place, and US immigration system in particular is a mess of gigantic proportions with no coherent immigration policy whatsoever - just a confusing mish-mash of random decisions made over the last few decades.