Skip to content

v0.2.4: Fix click for Vue/React SPAs

Choose a tag to compare

@mikuh mikuh released this 13 Feb 05:12
· 10 commits to main since this release

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 preserve isTrusted:true behavior required by sites like GitHub

Full Changelog: v0.2.3...v0.2.4