To be real, any time you visit any site you're running 3rd party code you didn't invite. NPM modules, random scripts from CDNs or stored off in a /libs directory, hardly any sites are built entirely on code hosted or written by the party running that site. Ads get a bad rap, but if you're running JS on the modern web it's not even the biggest culprit.