Refresh WebView (avoid duplicate javascript)

AnkiWeb addon 458841364

Refreshes the WebView to prevent JavaScript from being included multiple times when cards, editor text, front/back views, or previews change.
AI-generated summary; may contain mistakes.

review-flowcard-templatesbugfix-workaround

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
11 (πŸ‘ 11 Β· πŸ‘Ž 0)
Updated
2022-02-01
Anki versions
unknown
Description language
en

Maintenance

abandoned

  • Last update or commit was 1703 days before the snapshot (2022-02-01).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2022-02-01
History across monthly snapshots

Loading…

Similar addons

Disable autoplay in webview

Disables autoplay for HTML media tags in Anki's editor and browser webviews, with settings to re-enable autoplay globally or for specific webviews.

bugfix-workaround

Rating 1 πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2025-02-04
Flexible Duplicate Checking

Extends Anki's editor duplicate checking to include additional fields marked with _pk, reducing false positives when the same note type spans multiple decks or languages.

duplicates

Rating 10 πŸ‘ 8 Β· πŸ‘Ž 2 ⭐ 7 Anki 2.1.26~ Updated 2020-05-19
Flexible Duplicate Checking 2

Extends Anki editor duplicate checking to include additional fields marked with _pk, reducing false positives and updating duplicate search links.

duplicates

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 23.09~ Updated 2025-05-08
Override shortcuts

Automatically detects Python-side Anki shortcuts and lets users override or remove them via configuration, including window-close bindings, though detection may be imprecise.

shortcuts

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.66~ Updated 2023-06-05

Description

Refresh the WebView to avoid javascript being included multiple times. In reviewer: When a new card is shown TODO: When flipping to the back of the card In clayout: When text in the editor is changed When switching the editor from Front/Back/Styling When switching the previewer from Front/Back In previewer: When a new card is shown When flipping to the back of the card I'm fairly happy with the way I'm doing this and expect it to be reasonably resistant to breaking on updates.