- Joined
- Feb 13, 2025
- Messages
- 93
- Thread Author
- #1
Bug Bounty Tip: Extract JavaScript File URLs from Any Page!
Skip DevTools! Use this powerful bookmarklet to instantly grab all `.js` file URLs from any web page and save them to a `.txt` file.
Why This Matters:
- Quickly collect all linked JavaScript files
- Use them for static analysis (LinkFinder, SecretFinder, JSParser, etc.)
- Boost your recon for endpoint discovery & auth bypass
Bookmarklet Code:
Code:
javascript:(function(){
let urls=[];document.querySelectorAll('*').forEach(e=>{
urls.push(e.src,e.href,e.url)
});urls=[...new Set(urls)].filter(u=>u&&u.endsWith('.js')).join('\n');
let blob=new Blob([urls],{type:'text/plain'});
let a=document.createElement('a');
a.href=URL.createObjectURL(blob);
a.download='javascript_urls.txt';
a.click();
})();
How to Use:
- Create a new bookmark in your browser.
- Paste the above code into the URL field.
- Visit any target site.
- Click the bookmark — a `javascript_urls.txt` file will download!
Feed the Output into:
- LinkFinder
- SecretFinder
- JSParser
- Manual Analysis & Source Mapping
