Created
November 18, 2020 10:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\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