Skip to content

Instantly share code, notes, and snippets.

View eepytofu's full-sized avatar

tofu eepytofu

  • 10:44 (UTC +07:00)
View GitHub Profile
@eepytofu
eepytofu / bridge.py
Created May 24, 2026 04:25
Windows Live Captions → WebSocket bridge
import asyncio
import uiautomation as auto
import websockets
PORT = 6677
def get_caption_text():
try:
window = auto.WindowControl(searchDepth=1, Name="Live Captions")
text_el = window.TextControl(searchDepth=20, AutomationId="CaptionsTextBlock")
@eepytofu
eepytofu / _kiku_plugin.js
Created July 25, 2026 13:26
Kiku workaround for multiple dictionaries in MainDefinition
/**
* Kiku workaround for multiple dictionaries in MainDefinition.
*
* - removes every MainDefinition dictionary from Glossary
* - continues ordered-list numbering across separately rendered
* {single-glossary-*} markers
*
* Put this file in Anki's collection.media folder as _kiku_plugin.js.
* If you already use a Kiku plugin, merge the onPluginLoad body into it.
*/