Giter VIP home page Giter VIP logo

elementhistory's Introduction

Element History CircleCI

Chrome extension that shows you what code created or updated a DOM element.

Install from Chrome Webstore

How to use the Chrome extension

  1. Click on the orange button next to the URL bar. This will enable element history for this tab.

  1. You may want to reload the page to make sure changes made during initial page load are tracked

  2. Inspect an element and open the Element History pane

  1. You can now see the history of the selected element

Limitations

I'm adding support for individual DOM changes individually, e.g. innerHTML or setAttribute. That means not all changes will be tracked. If you run into tracking issues you can report them here: https://github.com/mattzeunert/ElementHistory/issues

Difference to DOM breakpoints

Chrome has a great feature called DOM breakpoints. It'll pause execution, for example when an attribute changes.

Use ElementHistory to:

  • see where the element was updated without pausing frequently
  • see where an element was created or inserted into the DOM
  • see the full history instead of each change one by one

This project is quite useful for plain JavaScript or jQuery code. If you use a framework with a virtual DOM then the place where, for example, the assignment to innerHTML happened isn't very interesting.

Development setup

npm run install, then npm run develop.

Load the src folder into Chrome as an unpacked extension.

Use npm run test to run the Karma test suite.

Open test.html for quick editing and debugging of the UI.

elementhistory's People

Contributors

mattzeunert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

xmorgan

elementhistory's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.