I'm working on this electron app that serves as a browser debugging tool based on TestCafe's core: hammerhead. This tool should be able to:
- Serve as a userscript/userstyle manager
- Serve as a middleware manager that intercepts HTTP requests
- Capture browser console output and execute scripts
- Apply to any browser that TestCafe supports, which includes in-app web views (Facebook, LINE, etc) and remote ones on browserstack
TestCafe hammerhead works as a URL-rewriting proxy that rewrites every resources (html, css, js) to keep them under a domain in your control and provide hooks for injection. This method applies to almost every browser and immediately opens a door to write userscripts and intercept HTTP requests in every browser. With such technology we can now easily debug in previously untouchable browsers.
We are now at 0.2.0. In this version,
- We have the most basic userscript management function
- We can pipe capture console message
- A page/frame model to distinguish browser windows in each session
- A server push mechanism
- Console eval function
- Request middleware maganement