Other / Developer / Show Scripts
The Show Scripts bookmarklet displays all JavaScript loaded on the page. Finds all script elements, collects external script URLs and inline script content, displays a yellow "Show Scripts" button in the top-left corner, and shows a modal with a textarea containing all script sources separated by dividers when clicked. Useful for security auditing, debugging script loading issues, and reviewing third-party scripts.
Run Show Scripts
Test run or drag to
bookmarklets bar to install
javascript:%21function()%7Bfor(var%20t%3Ddocument.getElementsByTagName(%22SCRIPT%22)%2Ce%3D%22%22%2Cn%3D%5B%5D%2Co%3D0%3Bo%3Ct.length%3Bo%2B%2B)%7Bvar%20l%3Dt%5Bo%5D.text%3Bl%3Fe%2B%3Dl%3An.push(t%5Bo%5D.src)%7Dvar%20s%3Ddocument.createElement(%22div%22)%3Bs.id%3D%22script-modal%22%2Cs.style.display%3D%22none%22%2Cs.style.position%3D%22fixed%22%2Cs.style.top%3D%2250%25%22%2Cs.style.left%3D%2250%25%22%2Cs.style.transform%3D%22translate(-50%25%2C%20-50%25)%22%2Cs.style.width%3D%2280%25%22%2Cs.style.height%3D%2280%25%22%2Cs.style.background%3D%22white%22%2Cs.style.border%3D%221px%20solid%20%230055ff%22%2Cs.style.padding%3D%2220px%22%2Cdocument.body.appendChild(s)%3Bvar%20d%3Ddocument.createElement(%22textarea%22)%3Bd.id%3D%22t%22%2Cd.style.width%3D%22100%25%22%2Cd.style.height%3D%2290%25%22%2Cd.style.border%3D%22none%22%2Cd.style.padding%3D%2210px%22%2Cs.appendChild(d)%2Cd.value%3Dn.join(%22%5Cn%5Cn-----%5Cn%5Cn%22)%2B%22%5Cn%5Cn%22%2Be%3Bvar%20c%3Ddocument.createElement(%22button%22)%3Bc.textContent%3D%22Show%20Scripts%22%2Cc.style.position%3D%22fixed%22%2Cc.style.top%3D%2210px%22%2Cc.style.left%3D%2210px%22%2Cc.style.background%3D%22%23ccff00%22%2Cc.onclick%3Dfunction()%7Bs.style.display%3D%22block%22%7D%2Cdocument.body.appendChild(c)%3Bvar%20i%3Ddocument.createElement(%22button%22)%3Bi.textContent%3D%22Close%22%2Ci.style.background%3D%22%23ff0000%22%2Ci.onclick%3Dfunction()%7Bs.style.display%3D%22none%22%7D%2Cs.appendChild(i)%7D()%2Cconsole.log(%22%5CnSource%3A%20https%3A%2F%2Fgist.github.com%2FExplosion-Scratch%2Fc853c40e4c4c0b7ad74f7d8644c238ba%23show-scripts%5CnBookmarklet%20name%3A%20Show%20Scripts%5Cn%22)%3B
← Back to all bookmarklets