Created
June 28, 2018 09:45
-
-
Save amalmurali47/4076d990b17bf382c57ce1c0e852143a to your computer and use it in GitHub Desktop.
Bookmarklet for viewing all scripts used in a page.
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
javascript:(function()%7Bs%3Ddocument.getElementsByTagName(%27SCRIPT%27)%3Btx%3D%27%27%3Bsr%3D%5B%5D%3Bfor(i%3D0%3Bi<s.length%3Bi%2B%2B)%7Bwith(s.item(i))%7Bt%3Dtext%3Bif(t)%7Btx%2B%3Dt%3B%7Delse%7Bsr.push(src)%7D%3B%7D%7D%3Bwith(window.open())%7Bdocument.write(%27<textarea id%3D"t">%27%2B(sr.join("%5Cn"))%2B"%5Cn%5Cn-----%5Cn%5Cn"%2Btx%2B%27</textarea><script src%3D"http://jsbeautifier.org/beautify.js"></script><script>with(document.getElementById("t"))%7Bvalue%3Djs_beautify(value)%3Bwith(style)%7Bwidth%3D"99%25"%3Bheight%3D"99%25"%3BborderStyle%3D"none"%3B%7D%7D%3B</script>%27)%3Bdocument.close()%3B%7D%7D)()%3B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment