'How to add custom command to the command menu of chrome devtools?

I want to write some helper functions in my web app or chrome extension. And I found chrome devtool command menu is really helpful. So I wander if I could add some costom command to invoker my helper function like adding custom commads into vscode command-palette. Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source