Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.35 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.35 KB

Overview

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

How it works

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.

Current state

We are now at 0.2.0. In this version,

  • We have the most basic userscript management function
  • We can pipe capture console message

Road map

0.3

  • A page/frame model to distinguish browser windows in each session
  • A server push mechanism
  • Console eval function

0.4

  • Request middleware maganement