aboutsummaryrefslogtreecommitdiff
path: root/ext/js/accessibility
Commit message (Collapse)AuthorAge
* Allow trailing commas in ESLint (#1013)James Maa2024-05-31
| | | | | * Update comma-dangle rule * Fix dangling commas
* Update eslint unsafe rule (#887)James Maa2024-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable @typescript-eslint/no-unsafe-assignment * Updates * Add missing import * Updates * Fix types? * Fix tests * Address comments * Move TextProcessorVariant to types * Update types/ext/translation-internal.d.ts Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com> Signed-off-by: James Maa <jmaa@berkeley.edu> --------- Signed-off-by: James Maa <jmaa@berkeley.edu> Co-authored-by: toasted-nutbread <toasted-nutbread@users.noreply.github.com> Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* Refactor DocumentUtil (#706)toasted-nutbread2024-02-18
| | | | | * Refactor DocumentUtil * Isolate suppression
* Log update (#701)toasted-nutbread2024-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't export Logger * Rename logger.js to log.js * Move helper function * Update extension name configuration * Simplify docs * Move issue URL to a field * Simplify context * Remove optional params that are never used * Configure backend * Update eslint * Simplify * Rename function * Simplify _api reference * Simplify docs * Remove unused log levels (except 'log') * Add log function * Rename for more clear intent * Use log.log
* Eslint rule updates (#673)toasted-nutbread2024-02-15
| | | | | | | | | | | | | | | | | * Install unicorn * Add rules * Fix issues * Install sonarjs * Set up rules * Fix issues * Install eslint-plugin-import and fix import extensions * Simplify permitted error names
* Add eslint eol-last rule (#662)Cashew2024-02-10
| | | | | | | * add eol-last eslint rule * fix lint * update css-json.test
* Document util + google docs util state refactor (#590)toasted-nutbread2024-01-31
| | | | | | | | | * Remove static from GoogleDocsUtil since it has state * Create TextSourceGenerator * Remove DocumentUtil custom registrations * Use TextSourceGenerator
* Separate core classes into separate files (#545)toasted-nutbread2024-01-20
|
* Update copyright year (#524)toasted-nutbread2024-01-20
| | | | | | | | | | | | | * Update copyright year * Update lib files * Rebase updates * Update dates * Update years to range * Update permitted pattern
* Fix google docs (#473)toasted-nutbread2023-12-29
| | | | | | | | | | | * Add support for content script execution world * Update manifest version to support world parameter in Chromium browsers * Update google docs injection * Reuse code for registration * Add info
* Comment updates (#481)Cashew2023-12-29
| | | | | * comment updates * comment updates
* Script manager cleanup (#456)toasted-nutbread2023-12-27
| | | | | | | | | | | | | | | | | | | * Remove unused functions * Remove fallback code * Simplify injectStylesheet * Simplify unregisterContentScript * Merge functions * Simplify registration details * Simplify injectScript * Remove class wrapper * Remove unused injectScript
* API type safety (#425)toasted-nutbread2023-12-23
| | | | | | | | | * Improve API type safety * Update init * Update type names * Simplify init
* Declare static fields using modern JavaScript syntax (#400)toasted-nutbread2023-12-20
|
* Update how ts comments are handledtoasted-nutbread2023-12-04
|
* Remove unneeded referencestoasted-nutbread2023-11-27
|
* Add JSDoc type annotations to project (rebased)toasted-nutbread2023-11-27
|
* Modernize codebaseDarius Jahandarie2023-11-04
| | | | | | - Use ES modules - Remove vendored libs and build them from npm using esbuild - Switch from JSZip to zip.js
* Fix Google Docs URL regex to not be excessively wideDarius Jahandarie2023-03-25
|
* fixed eslint, changed header to only use 2 spaces, added missing headers to testAustin Siew2023-03-22
|
* Updated LICENSE to full license, added Yomitan 2023 to all license headersAustin Siew2023-03-21
|
* Google Docs accessibility simplifications (#2237)toasted-nutbread2022-09-25
| | | | | | | * Use getAttribute instead of dataset, in case SVG node APIs are unusual * Use pointer-events instead of fill * Use elementFromPoint instead of elementsFromPoint
* TextSource* API updates (#2236)toasted-nutbread2022-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move TextSourceRange static functions to DocumentUtil getWritingMode is also simplified * Update Google Docs range to be empty to match other range sources * Rename imposterContainer to imposterElement * Add static creation functions * Add static creation function * Remove unused collapse function * Don't select imposter elements * Refactor setEndOffset * Adjust argument order for setEndOffset * Update TextSourceRange constructor * Remove unused isConnected * Cache rects * Fix test * Remove unused getRect * Revert "Fix test" * Remove cachedRect * Use the source element rect to handle scroll differences * Writing mode update * Remove _cachedRects update This shouldn't be necessary as the imposter is usually detached almost immediately after scanning, giving no time for the window to be resized or scrolled.
* Google Docs accessibility update (#2235)toasted-nutbread2022-09-24
| | | | | | | | | | | | | * Update Google Docs injection script * Create GoogleDocsUtil * Update Frontend.js to register GoogleDocsUtil's getRangeFromPoint handler * Update setting name and description * Add comment * Fix Firefox support
* Workaround for Google Docs canvas rendering updates (#2096)toasted-nutbread2022-04-02
|
* Update copyright date (#2062)toasted-nutbread2022-02-02
| | | | | | | * Update eslint settings * Update 2021 files * Update other files
* Add AccessibilityController class, which dynamically registers (#2024)toasted-nutbread2021-11-23
| | | and unregisters the google-docs.js content script
* Google Docs accessibility refactor (#2023)toasted-nutbread2021-11-23
| | | | | | | | | | | | | | | | | * Skip urlRegex if it's used as a filter * Add getRequiredContentScriptRegistrationPermissions function * Add a reentrant check to google-docs.js * Remove script node * Move forceGoogleDocsHtmlRendering check into google-docs.js * Replace document-start.js usage with google-docs.js * Remove documentStart handling * Add missing parameter descriptions
* Google Docs accessibility (#1875)toasted-nutbread2021-08-07
* Add accessibility option for forcing Google Docs HTML-based rendering * Update settings * Send a documentStart message at document start * Add accessibility script for Google Docs * Set up accessibility * Update tests