# G Devtool > A devtool for @antv/g in chrome, it's still WIP, you can load it in unpack way; ## Update Notice This extension has been updated to Manifest V3 to maintain compatibility with modern versions of Chrome. If you were previously using the Manifest V2 version, please reload the extension after updating. ## Quick Start ### Import unpacked plugin ![image](https://user-images.githubusercontent.com/15213473/150081309-61f9c451-c35e-4dab-a23c-ed5e425e7ec5.png) 1. Open the Extension Management page by navigating to chrome://extensions. 2. Enable Developer Mode by clicking the toggle switch next to Developer mode. 3. Click the Load unpacked button and select the 'devtool' directory. ### Connect with G Canvas #### In Native G Usage ```javascript // init window hook window.__g_instances__ = []; var canvas = new Canvas({ ...blablabla }); window.__g_instances__.push(canvas); ``` #### In G6 ```javascript // init window hook window.__g_instances__ = []; var canvas = graph.get('canvas'); window.__g_instances__.push(canvas); ``` #### In G2 ```javascript // init window hook window.__g_instances__ = []; var canvas = chart.canvas; window.__g_instances__.push(canvas); ``` #### In S2 ```javascript // init window hook window.__g_instances__ = []; var canvas = s2.getCanvas(); window.__g_instances__.push(canvas); ### Using devtool After these steps, the tab 'AntV G' should show in devtools' tab, select it and choose a canvas ![image](https://user-images.githubusercontent.com/15213473/150081267-fb22d227-3946-4f08-88e8-55086d047da0.png) ## Features ### Inspect Element in Canvas ![image](https://user-images.githubusercontent.com/15213473/150081777-225f785d-60da-4cf6-b443-e8013414b65c.png) ### View and Modify Attributes of Element ![image](https://user-images.githubusercontent.com/15213473/150082189-e915f886-4c60-42a3-b4c6-a731541a0e79.png) ### Using select element directly in canvas ![image](https://user-images.githubusercontent.com/15213473/150082485-46b5c750-de64-42f7-882b-a3ff4db95826.png) ```