Skip to content

yihleego/chrome-element-inspector

Β 
Β 

Repository files navigation

Chrome Element Inspector

GitHub license GitHub release Github all releases

Chrome Element Inspector is a powerful chrome extension tool built with Vite and Vanilla, using Manifest v3. It allows you to easily inspect the elements of any website and make changes to the DOM.

...

Features and About

  • All code and refactor generated with ChatGPT
  • Manifest v3
  • Typescript
  • Vite
  • Prism for code highlighting
  • Hover over elements to see a Chrome DevTools like overlay, and interact.
  • Implement ShadowDOMComponent to hook into Inspector events.

This project was an exercise in ChatGPT, and a Chrome Extensions MV3 makeover. It's also been moved to a typescript interface, so it's more maintainable.

Weirdly enough, although this project is chrome-extension ready, it isn't available on the store, although the repo will product ready code for it. The main issue with this is the extensibility for the developer. This tool is designed to be extended and fit your use case.

Demo

Chrome Element Inspector

Installing

  1. Check if your Node.js version is >= 14.
  2. Change or configurate the name of your extension on src/manifest.
  3. Run npm install to install the dependencies.

Developing

run the command

$ cd chrome-element-inspector

$ npm run dev

The ShadowDOMComponent system was designed for easy extension. You can add your own components to the inspector, and hook into the events. Check out the Inspector class for more info. Specifically, the "activate" method, where you create your class instance and hook everything up.

Chrome Extension Developer Mode

  1. set your Chrome browser 'Developer mode' up
  2. click 'Load unpacked', and select chrome-element-inspector/build folder

Packing

After the development of your extension run the command

$ npm build

Now, the content of build folder will be the extension ready to be submitted to the Chrome Web Store. Just take a look at the official guide to more infos about publishing.


Contributors

This project template was generated by create-chrome-ext. The original code was originally inspired from this awesome project: ilyashubin/hover-inspect.

About

Inspect elements like Google Chrome DevTools πŸš€ πŸ”

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.1%
  • HTML 20.9%