Skip to content

A browser debugging tool based on TestCafe hammerhead

License

Notifications You must be signed in to change notification settings

simonpai/hammermonkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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