Welcome to Cool JS! This repository contains a set of handy JavaScript snippets that I frequently use in Chrome Dev Tools. These snippets aim to streamline tasks and enhance your browsing experience.
Easily capture the HTML of the current webpage, including its associated CSS and everything else. This snippet swiftly copies it to your clipboard, saving you time when analyzing or referencing page structures.
Instantly gather email addresses present on the webpage and swiftly copy them to your clipboard. This snippet simplifies the process of collecting contact information, ideal for various research or communication purposes.
Locate and copy the URLs for all the MP4 files found on a webpage of a site.
-
Accessing Chrome Dev Tools:
- Open the Chrome browser.
- Press
F12
or right-click and selectInspect
to open Dev Tools.
-
Using the Snippets:
- Navigate to the
Console
tab in Dev Tools. - Choose the snippet you need, example
extracthtml.js
and copy it. - Go back to the inspect element
console
and paste in the snippet.
- Navigate to the
If you have more handy JavaScript snippets to share or want to improve existing ones, feel free to contribute! Open issues, submit pull requests, or provide suggestions to make Cool JS even cooler.