You can remove most objectionable elements with uBlock filters. Also dedicated browser extensions exist to deal with the biggest offenders.
If you're willing to use alternatives and do without the services entirely then simply DNS blocking a handful of big names on your LAN immediately resolves the majority of the issue.