Skip to content

Instantly share code, notes, and snippets.

@charisTheo
Created November 18, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charisTheo/e515f76b0abfd4913ad00291471477f1 to your computer and use it in GitHub Desktop.
Save charisTheo/e515f76b0abfd4913ad00291471477f1 to your computer and use it in GitHub Desktop.
Log 3rd party scripts into the console. Test with blocked 3rd party domains: https://github.com/WPO-Foundation/webpagetest-docs/blob/master/user/Scripting.md#blockdomains
"\n\n"+[...new Set([...$$('script')].filter(e => !e.src.includes(document.location.hostname) && e.src !== "" && !e.src.includes('cloudfront') ).map( e => new URL(e.src).host))].join(' ')+"\n\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment