I spent six years as a so-called "digital nomad," working for US companies remotely while living overseas. That's also legally questionable but harder for governments to enforce. I suggest you either go back to your home country and apply for US jobs from there (so there's no question about you violating your tourist visa and implicating a prospective employer), or freelancing remotely for US companies for a while, which doesn't require a work permit/visa.
Your experience is insighful. Thanks for sharing!
When you apply for a job while in the US but you don't have a visa that allows work or business, you put the potential employer in a bad position. If they follow up and interview you and proceed with hiring you, they may be party to immigration fraud (more likely they will worry about that, I think actual legal action unlikely). And they will have other legitimate concerns: they will get started on the complex and expensive visa sponsorship process only to have you fail to get the visa (if USCIS asks questions about when you applied for the job), or that you will apply for other jobs because you mainly want the visa, or if you will work for them just long enough to get a visa. Most US companies don't have a lot of experience hiring foreigners so they might not want to take any chances. The companies that do hire a lot of foreigners can pick and choose from a large pool of candidates who want to work in the US.
Sending in resumes and cover letters is not the correct way to search for a job, though it's the most common approach. With no degree and only six months of experience you are entry-level at best. Right now the demand in the US tech industry is for senior-level people. There's no shortage of entry-level US citizens/green card holders looking for first jobs.
You're not doomed, but you should realistically assess where you are in your career (the very beginning) and how that looks to companies desperate for more senior people. Add to that the complications of not having the right to work in the US and you can start to understand why your applications get ignored. The US has limits on H1-B visas, with exceptions for people who have advanced degrees or specialized skills. I can't imagine a company going to the trouble sponsoring a visa for an entry-level candidate. I know at places I've worked candidates who didn't have US work permits were ignored -- it's simply too much trouble to sponsor a visa and not worth it for entry-level/junior positions.
I'm trying to give you helpful advice but I realize I'm painting a bleak picture. Large companies like Facebook don't have a problem attracting candidates and they can sponsor visas for more experienced people (or people with degrees). Smaller and less sexy (not tech-oriented) companies do have trouble attracting candidates, but they are likely unfamiliar with and skittish about hiring a foreigner. Companies used to post "US citizens/permanent residents only" in their job ads but that seems less common now -- perhaps the employers (or recruiters) worry about lawsuits for "exclusionary" hiring practices, or they don't want to take the chance of missing a truly great candidate they might sponsor.