Browser extension for automated flashcards making ⚙️ - it gathers words from a text, counts them and seeks for translations. Then QR code can be scanned
- 📱 making scannable QR codes with CSV
term,definition
flashcards - 🪤 making selections with cursor
- 📑 sending (also through QR) selection itself as reference
- 🖌️ UI design
- 🫂 general purpose functionalities:
- 🪤 converting selection to flashcards with translations (deepl.com)
- 🤖 converting selection to chat GPT definitions flashcards (chat.openai.com)
- 🦊 firefox extension
- 🪐 chrome extension
*replaceing highlighting with find API could remove need for read-all permissions for all pages, given that selecting is done properly
- install from addons page
- select text, click right mouse button and select
Make flashcards
from context menu - select option from popup
- a popup will live-scrap a 3rd party website
- some background calls for scrapping will be done, with popup having loading screen
- view in popup, you can get back to it with extension button:
- ranking of the words with their translations
- copy button for CSV copy (for quizlet for eg.)
- QR code slideshow for scanning (see FCQR)
src/menu.ts
and src/pages/*
Network usage of scrapping is dependent of form data is given.
Some websites work with JS, so casual scrapping won't do much. Headless browser seems not adequate when you have normal browser and not a terabyte-need of data, so a popup it is
Also it looks cooler
Live scarp tends to be more compact and as such may require less network usage.
Some websites can be scrapped with normal fetch
API, and that is
prefered for simplicity and speed
- drawbacks - most of website's don't support wide CORS so proxies may be needed
- developed and tested with firefox 🦊
- bundling requirements: deno&esbuild
- install deno and optionally cache
esbuild
withdeno cache https://deno.land/x/esbuild@v0.18.11/mod.js
- bundle with
deno run bundle.js
accepting prompts and makexpi
file with./zip.sh
- while developing, use:
deno run -A --watch=./src bundle.js
- install deno and optionally cache
- datalog/datamatrix-svg under MIT
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License .