For desktop there is already better image occlusion addon.
I have mainly implemented it for phone.
-
For Android APK from release page can be downloaded.
https://github.com/infinyte7/image-occlusion-in-browser/releases -
For iOS, web version of the app can be used.
https://infinyte7.github.io/image-occlusion-in-browser/v2/index.html
Note: I have tested it on iOS 11,12,13 and 14. But only on iOS 13 & 14 it is working.
It may or may not work and indefinitly show loading message. -
For Desktop, the same web version of the app can be used.
https://infinyte7.github.io/image-occlusion-in-browser/v2/index.html
The Android app copy images and notes data to AnkiDroid using AnkiDroid API. But in case of web version the deck generated using genanki and pyodide.
Source