Repository navigation
Define: look up the selected word in Wiktionary - #21
Merged
Merged
Conversation
Select a word or short phrase and press D (or the Define icon in the selection toolbar) for a dictionary card: senses by part of speech, 'plural of X' links that look up X, and a link to the full entry. Only the word is sent, to Wiktionary; the CSP and privacy note say so. The selection toolbar's note and define actions are now icon-only, with names and keys in their tooltips. Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Select a word or short phrase (up to four words) and press D, or the new Define icon in the selection toolbar, to see its dictionary entry in a card beside the selection.
What's in it
aria-labelandaria-keyshortcuts.Dis in the shortcuts dialog, the README and the roadmap.Privacy and CSP
This is the app's first network request of its own. Only the selected word is sent, to
en.wiktionary.org, and only when the reader asks.connect-srcnow allowshttps://en.wiktionary.org, and the privacy section ofdocs/DATA.mdsays so. Results are cached in memory for the session. The service worker ignores other origins, so nothing changes there.Not included
Testing
page.route, run against the production build, so it also checks that the CSP allows the request. It covers the toolbar button,D, Esc, no entry, and long selections not offering Define.