People without minor kids love to suggest laws like this. Same as people who don't play video games want to ban video games. Same as people who don't own sports cars want to ban sports cars, etc.
Suggestions like this are no different and just as morally bankrupt as folks who don't own guns wanting to ban all guns.
If we're going to go down that road, I'd prefer to see DA's held personally liable for the actions of criminals they failed to fully prosecute. DA's office fails to file charges against a career armed robbery dirtbag, and the same dirtbag murders someone when they should have been in prison? DA catches charges for reckless endangerment & manslaughter. too.
But in the end all of these ideas just manufacture new criminals when the problem isn't a lack of criminals. It's a lack of prosecution and accountability for the criminals we have. Making new criminals to fall into the same lack of prosecution and accountability just makes everything worse.
Enforce the laws we have, fully.