This commit cleans up linting issues and proposes a new implementation for the devtools custom context menus.