blob: 57dc49dd0dda67312271b4328e276083a212a1f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---
title: 'Bumblebee: web script synthesizer'
date: 2025-04-02
layout: post
project: true
thumbnail: thumb_sm.png
---
For work. Browser session-to-code conversion. Pre-LLM.
<video style="max-width:100%; margin-bottom: 10px" controls="" poster="poster.png">
<source src="bee.mp4" type="video/mp4">
</video>
Script quality pitiful. Created tool to generate them by analyzing browser events.
Stack: C# WinForms host, WebView2 browser, Scintilla.NET editor.
Data structure: twin lists--one for events, one for text.
Implementation:
- Interception: Injected JS hooks + internal browser events.
- Transformation: Event → Token → Instruction table → String.
- Optimization: Toss unnecessary clicks, squash input events.
- Rendering: Two-way binding between text and Scintilla editor.
NOTE: Lists desync on manual edits; blocks optimizer. Replace lists
with ASTs.
Script generation: minutes/hours → seconds.
|