About this project
Trace (also known as T次方) is an open-source Chrome browser extension focused on website behavior tracing and in-depth frontend debugging and analysis.
Core capabilities include:
- **Cookie Tracking**: Records sites' set and read operations on Cookies.
- **Event Tracking**: Listens for page event registration and triggering.
- **Object Tracking**: Traces most property and method calls on window and document via the hookProxy method.
- **Script Injection**: Dynamically injects custom JavaScript code into the current page.
- **Request Interception**: Precisely blocks network requests based on regular expressions with global effect, addressing limitations of Chrome's built-in Network Request Blocking.
- **Variable Tracking**: Records runtime-generated strings along with their location information to assist in pinpointing data origins; combined with cache disabling and breakpoints, it can capture critical URL data before navigation.
- **JS Deobfuscation**: Attempts to restore obfuscated code using methods such as AST parsing.
- **Response Stream Modification**: Forwards page response bodies to a specified address; combined with Babel plugins, this enables arbitrary modification of responses, theoretically supporting advanced operations like automated deobfuscation.
The extension also exposes interfaces such as `Proxiable`, `DocProxiable`, and `hookProxy` to the runtime environment, allowing direct proxy hooking of target objects from the Console.
Installation is supported via the Chrome Web Store, by dragging the CRX file to load, or by downloading the source code and loading it under Developer Mode using the Load unpacked option. The extension consists of a Popup quick-toggle page and an Options settings page. Note that after enabling features like variable tracking, deobfuscation, and response stream modification, Chrome will display a debugging indicator that cannot be dismissed during the session. Settings must be saved and reactivated per specific tab to take effect.
The project uses the Babel compiler and Pico CSS framework and is licensed under MIT.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.