#ankidroid - debug - js code - weird behaviour - replace func

7 messages · Page 1 of 1 (latest)

winter zenith
#

.
For immersion I do cards with examples and translation for the like
안녕 (hello)

I want to hide text in (), so I did JS script!
but this replace broke my card on ankidroid even in commend state, any idea who is expert in it?

#

ankidroid - debug - js code - weird behaviour -replace func

#

ankidroid - debug - js code - weird behaviour - replace func

#

how to do it on the phone?

#

AnkiDroid Version = 2.20.0 (d41d16a45c00b0bdbd3b13ac988143db5ef8ae90)

Backend Version = 0.1.48-anki24.11 (24.11 c47638ca36f99dd4f3b81ae82d964aec66e392e0)

Android Version = 10 (SDK 29)

ProductFlavor = play

Manufacturer = Xiaomi

Model = MI 8 Lite

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.6778.39 Mobile Safari/537.36

ACRA UUID = 1b5403ab-3648-44be-b4ac-e7673657476f

FSRS = 1.4.3 (Enabled: true)

Crash Reports Enabled = true

#

.
ANKIPOGGERSANKIPOGGERS
I just can't figure out how even commented line can break card