aboutsummaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAge
* remove webRequest and webRequestBlockingpraschke2023-10-29
| | | | | | | | | | | | | | | | firefox was previously unable to use declarativeNetRequest, as some browser state (ExtensionDNRStore) wasn't correctly initialized wrt yomitan's use of the DNR API. this bug manifested as an unexpected error on calls to updateDynamicRules(), specifically after the browser has been restarted. switching to the use of session rules instead of dynamic rules fixes this bug. i have tested audio info requests (custom JSON, JPod Alternate, Jisho) that exhibited the bug after browser restart on version 115 and 118, and the audio plays instead of the request failing. webRequest can now be entirely removed.
* fix: session rules should be used instead of dynamic rulespraschke2023-10-29
| | | | | | session rules are less persistent than dynamic rules, and the intention of RequestBuilder is to only have rules active for the lifetime of specific requests.
* fix: _getDynamicRules() returns a promisepraschke2023-10-29
| | | | dynamic rules were never cleared, as the promise is not iterable as expected.
* remove webRequest from chrome for realpraschke2023-10-29
|
* fix: reinstate webRequest and correct the permissions docspraschke2023-10-25
| | | | | | | `webRequest` is used on Chrome/MV3 to surface error information from failed requests. it was added back to the declarative path by toasted-nutbread in FooSoft/yomichan#2161, but the permissions documentation did not reflect `webRequests` continued necessity.
* fix: typopraschke2023-10-24
|
* fix: save options after updating thempraschke2023-10-23
| | | | | | | | | | | | | | | | _optionsUtil.save() is only called in _saveOptions, which is only called through - _onApiSetAllSettings - _onApiModifySettings - _onCommandToggleTextScanning it should be safe to simply save settings after updating them. without saving, the options will be updated every time the background restarts, until any settings are modified or text scanning is toggled. for _updateVersion21, this means the welcome page will open repeatedly to show the same warning.
* Merge pull request #276 from praschke/block-helper-rewriteDarius Jahandarie2023-10-22
|\ | | | | | | Block helper rewrite
| * warn about custom templates in the welcome pagepraschke2023-10-22
| |
| * catch a few more cases in the template patchpraschke2023-10-22
| |
| * remove kanjiLinks and sanitizeCssClasspraschke2023-10-17
| |
| * update: pronunciationpraschke2023-10-17
| |
| * update: hasMedia and getMediapraschke2023-10-17
| |
| * update: set and getpraschke2023-10-17
| |
| * fix: regexReplace and regexMatchpraschke2023-10-17
| | | | | | | | | | joining the args together without cutting out the options arg can add an '[object Object]' into the result.
| * fix: formatGlossarypraschke2023-10-17
| |
| * fix: furigana and furiganaPlainpraschke2023-10-17
| |
| * fix: dumpObjectpraschke2023-10-17
| |
| * initial handlebars patchpraschke2023-10-17
| |
* | Merge pull request #278 from jbukl/offscreen-clipboardDarius Jahandarie2023-10-22
|\ \ | | | | | | | | | Fix chromium clipboard access
| * | fix: clipboard getImage, review commentsjbukl2023-10-21
| | | | | | | | | | | | | | | | | | | | | implement getImage for offscreen requests move offscreen files, offscreen prep is done in sw prep update permissions document for offscreen rearrange permissions
| * | chore: unused importjbukl2023-10-20
| | |
| * | chore: some returns booljbukl2023-10-20
| | |
| * | chore: cleanup offscreen documentation codejbukl2023-10-20
| | |
| * | fix: chromium clipboard accessjbukl2023-10-20
| |/ | | | | | | on chromium, backend calls to clipboardGet are forwarded to an offscreen script
* / Edit `vertical-align` style for structured content hyperlinksstephenmk2023-10-20
|/
* add sort dictionary data to parse results on the search pagepraschke2023-10-13
| | | | this is based on forsakeninfinity's commit https://github.com/forsakeninfinity/yomibaba/commit/c9887d51ed5c917bb900d7964614154de1d76872
* fix: typoCashew2023-10-08
|
* Merge pull request #266 from praschke/dexie-unpkgDarius Jahandarie2023-10-01
|\ | | | | | | dexie: use blobs obtained from unpkg and update library README
| * dexie: use blobs obtained from unpkg and update library READMEpraschke2023-10-01
| |
* | fix: page and popup state is destroyed on background wakeuppraschke2023-10-01
|/ | | | | | | | | | | | when the background script starts, it sends a `Yomichan.optionsUpdated` message which is retransmitted indiscriminately. - popups are all torn down/refreshed - the search bar on the search page can lose state - if a popup has been loaded on the search page, the search page can redirect/refresh - options being edited can lose state and the options page can refresh
* Merge pull request #259 from praschke/chrome-death-fixDarius Jahandarie2023-10-01
|\ | | | | | | Fix Chrome death, by creating both cross-frame ports in the background
| * wait for backend ready signal to prepare cross-frame apipraschke2023-10-01
| | | | | | | | | | not sure if API messages should be sent in prepare(), but we should probably wait for the ready signal before doing so
| * remove stray debugging commentpraschke2023-10-01
| |
| * remove yomichan.connect()praschke2023-10-01
| | | | | | | | | | | | it was only used in the cross-frame api. additionally, this comment on triggerExtensionUnloaded is incorrect.
| * create both cross-frame ports in the backgroundpraschke2023-09-30
| | | | | | | | | | | | | | | | | | | | on Chrome (currently 117), the port created in the content script with runtime.connect does not properly receive an onDisconnect event when the service worker sleeps. the port created in the background with tabs.connect does receive the event, so create both ports with tabs.connect. fixes #241.
* | Satisfy jsdoc/check-line-alignment lintDarius Jahandarie2023-10-01
| |
* | Satisfy jsdoc/require-returns lintDarius Jahandarie2023-10-01
| |
* | Satisfy no-implicit-button-type lintDarius Jahandarie2023-10-01
| |
* | Satisfy wcag/h63 lintDarius Jahandarie2023-10-01
|/
* Remove hardcoded version from manifestDarius Jahandarie2023-09-23
| | | | | | * Dynamically set version as argument to build script * Set version using tag ref_name in CI * [Cleanup] gitignore ext/manifest.json as it's dynamically generated
* Increase yomitan popup size to fit contentDavid Gisser2023-08-25
|
* Add Intuitive Permission Toggle to Welcome Page (#214)Ewan Fox2023-08-20
|
* remove broken fetch(1, 2)praschke2023-08-17
| | | | | | | | this line serves no purpose. the commit it was introduced in has the message 'Document RequestBuilder' and is the only non-documentary line in the commit. related to #204.
* fixup permissions pagepraschke2023-08-17
|
* fix: window.getSelection() can return null on Firefoxpraschke2023-08-17
|
* fix: StyleOrigin enum absent in Firefoxpraschke2023-08-17
| | | | | the API accepts string literals, which is all this enum provides. This should fix two warnings in #96.
* fix script and style injection in Firefoxpraschke2023-08-17
| | | | | | | | | | | | Firefox added the scripting API in 102. This should fix the majority of warnings listed in #96: - insertCSS - executeScript - getRegisteredContentScripts - contentScripts.register - registerContentScripts - unregisterContentScripts
* fix libraries in README and Firefox CSPpraschke2023-08-17
|
* Add support for exporting and importing dictionaries database.forsakeninfinity2023-07-15
| | | | | | | | It's super annoying to have to import dictionaries one at a time every time you move across browsers or devices. This change adds an experimental mechanism to export and import the entire database of dictionaries so that users have to deal with only one source instead of tracking tens of different dictionaries separately when migrating.