Refresh WebView (avoid duplicate javascript)

AnkiWeb addon 458841364

Refreshes the WebView to prevent duplicate JavaScript inclusion across the reviewer, editor layout and previewer whenever cards, sides, text or views change.
AI-generated summary; may contain mistakes.

card-templatesbugfix-workaroundbeta

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
11 (πŸ‘ 11 Β· πŸ‘Ž 0)
Updated
2022-02-01
Anki versions
unknown
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python
Description language
en

Maintenance

abandoned

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

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 of HTML audio and video tags in Anki's editor and browser webviews, with settings to re-enable it globally or per webview.

formatting

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2025-02-04
Content Injector

Injects global HTML, CSS, and JavaScript files into Anki cards at render time, with configurable files, placement, and toggles, without altering card content.

appearancecard-templates

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 3 Anki 2.1.33~ Updated 2020-09-03

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.