aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/float.js
Commit message (Collapse)AuthorAge
* Popup init update (#497)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add API function to send a message to a specific frameId in a tab * Update _windowMessageHandlers to support additional info per handler * Remove message token * Add new authorization check * Set up new initialization handler * Update initialization * Remove message token * Replace 'prepare' with 'configure' * Create new prepare function * Change configure guard * Log errors in onMessage * Improve popup initialize function * Clear secret/token in _resetFrame * Remove backend message token * Clear src and srcdoc attributes before loading * Don't treat about:blank unloads as load events
* Validate document nodes before use (#493)toasted-nutbread2020-05-02
| | | | | | | | | | | | | * Validate document.body before use in loadScripts This also fixes an issue where reject wasn't being passed to loadScriptSentinel. * Validate document nodes before use in _getSiteColor * Validate document.body before use in _getViewport * Validate document.body before use in setContentScale * Validate document.body before use in docImposterCreate
* Frontend refactor (part 1) (#484)toasted-nutbread2020-04-27
| | | | | | | | | | | | | | | | | | | * Remove _getVisualViewportScale * Use super's mouse event listener definitions * Remove redundant override * Remove getTouchEventListeners override * Rename Display.onSearchClear to onEscape * Change onSearchClear to clearSelection and use an event * Update how text is marked for selection and deselection * Replace onError with yomichan.logError * Update setEnabled to refresh all event listeners
* Error logging refactoring (#454)toasted-nutbread2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create new logging methods on yomichan object * Use new yomichan.logError instead of global logError * Remove old logError * Handle unhandledrejection events * Add addEventListener stub * Update log function * Update error conversion to support more types * Add log event * Add API log function * Log errors to the backend * Make error/warning logs update the badge * Clear log error indicator on extension button click * Log correct URL on the background page * Fix incorrect error conversion * Remove unhandledrejection handling Firefox doesn't support it properly. * Remove unused argument type from log function * Improve function name * Change console.warn to yomichan.logWarning * Move log forwarding initialization into main scripts
* Update Popup and DisplayFloat optionsContext from Frontend (#464)siikamiika2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | * set optionsContext from Frontend * update Popup+Display options on Frontend change * remove popup setOptions * only update DisplayFloat options from Frontend * fix optionsContext usage * fix preview frame arguments * keep Frontend URL up to date * cache url * fix preview frame * trigger modifyingProfileChange in correct places * remove async from function not using await * refactor optionsContext in Frontend
* Create float-main.jstoasted-nutbread2020-04-19
|
* Merge pull request #437 from toasted-nutbread/backend-api-handler-changestoasted-nutbread2020-04-11
|\ | | | | Backend api handler changes
| * apiBroadcast => apiBroadcastTabtoasted-nutbread2020-04-10
| |
| * Rename apiForward to apiBroadcasttoasted-nutbread2020-04-07
| |
* | Update license author field to broader to explicitly reflect thatAlex Yatskov2020-04-10
|/ | | | | Yomichan is an ongoing community project. It really does take a village, and everyone who contributes code owns a part of it :)
* Add support for getting the document titletoasted-nutbread2020-04-06
|
* apply all options on profile changesiikamiika2020-03-21
|
* Update global declarationstoasted-nutbread2020-03-10
|
* fix hotkeys in popupsiikamiika2020-03-01
|
* Use .bind instead of () => {}toasted-nutbread2020-02-26
|
* Move event handler definitionstoasted-nutbread2020-02-26
|
* Use a token to ensure that messages are coming from Yomichantoasted-nutbread2020-02-17
|
* Prevent multiple prepare callstoasted-nutbread2020-02-16
|
* Simplify process to wait for iframe prepare completiontoasted-nutbread2020-02-16
|
* Add global apiForwardtoasted-nutbread2020-02-14
|
* Merge pull request #357 from siikamiika/simplify-display-preparesiikamiika2020-02-14
|\ | | | | Simplify display prepare
| * use sendMessage to notify about initializationsiikamiika2020-02-14
| |
| * notify popup about initializationsiikamiika2020-02-13
| |
| * rename display initialize methods to preparesiikamiika2020-02-13
| |
* | Define more globalstoasted-nutbread2020-02-11
|/
* Scale popup based on current page zoom factortoasted-nutbread2020-01-22
|
* Only use Display.setContenttoasted-nutbread2020-01-16
|
* Update license info URLtoasted-nutbread2020-01-01
|
* Update copyrighttoasted-nutbread2020-01-01
|
* Replace window.yomichan_display with DisplayFloat.instancetoasted-nutbread2019-12-20
|
* Update how orphan state is observedtoasted-nutbread2019-12-20
|
* Update display float key handlerstoasted-nutbread2019-12-13
|
* Update float message handlerstoasted-nutbread2019-12-13
|
* Replace hasOwnProperty with simplified hasOwn functiontoasted-nutbread2019-11-26
|
* Update *show* APIs to unified showContent and setContenttoasted-nutbread2019-10-17
|
* Update how custom CSS is appliedtoasted-nutbread2019-10-12
|
* Remove Display.dependenciestoasted-nutbread2019-10-12
|
* Don't pass options around for calls to termsShow, kanjiShow, etc.toasted-nutbread2019-10-12
|
* Update Display initialization processtoasted-nutbread2019-10-12
|
* Frontend updatestoasted-nutbread2019-10-11
|
* Create utility function for logging errorstoasted-nutbread2019-10-08
|
* Simplify float initializationtoasted-nutbread2019-10-02
|
* Use static object for float message handlerstoasted-nutbread2019-10-02
|
* Use KeyboardEvent.key for onKeyDown handlerstoasted-nutbread2019-10-02
|
* Use raw element references for container and spinnertoasted-nutbread2019-09-27
|
* Remove jQuery usage from float.jstoasted-nutbread2019-09-27
|
* Add support for using optionsContext to select which profile to usetoasted-nutbread2019-09-18
|
* Add a context object for all calls to fetch optionstoasted-nutbread2019-09-10
|
* Update nested initialization parameters passed via message rather than using ↵toasted-nutbread2019-09-02
| | | | the URL query string
* Add support for Edge browsertoasted-nutbread2019-08-26
|