Skip to content

Shows the DOM tree structure of the page you are on. You can set the parent anywhere in the DOM.

Notifications You must be signed in to change notification settings

chrisjwaddell/DOM-tree-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOM-tree-visualizer

This is a script you can put into Tampermonkey or Greasemonkey to get a tree view of a DOM tree. It uses D3 (version 3.4) to generate the tree. You can start the DOM tree from any element in the DOM tree.

DOM Tree Visualizer

It inserts a popup block and inserts the generated DOM tree visualization. You can close this popup to go back to the website. DOM Tree Visualizer Popup

You can close branches and expand branches by clicking on the node.

How to use

Put dom-tree-visualizer.js into Tampermonkey or Greasemonkey. In the console type in:

DOMTreeVisualize("footer")

To show the DOM tree branch of footer. You can choose any part of the DOM tree as the parent.

About

Shows the DOM tree structure of the page you are on. You can set the parent anywhere in the DOM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published