Repository navigation
v0.2.4: Fix click for Vue/React SPAs
What's Changed
Fix click not triggering navigation on Vue.js/React rendered pages
Replace el.click() with a full pointer+mouse event dispatch sequence before the native el.click() call:
pointerdown → mousedown → pointerup → mouseup → el.click()
Problem
On SPA sites like Tencent Video, Bilibili, etc., bctl click on search result cards would fire the DOM click but not trigger the framework's navigation handler, requiring manual URL extraction as a workaround.
Fix
- Dispatch
PointerEvent(pointerdown/pointerup) +MouseEvent(mousedown/mouseup) with element center coordinates - Retain native
el.click()at the end to preserveisTrusted:truebehavior required by sites like GitHub
Full Changelog: v0.2.3...v0.2.4