Last active
June 15, 2017 19:30
-
-
Save twhid/71f9dcb77ba191116add091bed3c3e59 to your computer and use it in GitHub Desktop.
One-liner return an array of script srcs based on a regex (eg a domain). Handy to use in Chrome's console.
This file contains hidden or 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
[].slice.call(document.getElementsByTagName('script')).filter(script => /example.com/.test(script.src)).map(script => script.src); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment