Here’s a possible workaround. Blacklist all third-party scripts from said porn sites, and then whitelist whatever domains are needed to make the site work. That way, only those scripts from those domains will be loaded, and random domains will be disregarded.
Another option is to use something like NoScript or LibreJS. That way, the JS code will be blocked by default, and again, you can whitelist only what you need to make the site work.