toasted-nutbread
964de775df
Validate contentWindow before focus
2019-09-14 12:02:31 -04:00
Alex Yatskov
ec816e6767
Merge pull request #207 from toasted-nutbread/popup-proxy-writing-mode
...
Add writingMode to PopupProxy* termsShow and kanjiShow
2019-09-12 19:48:22 -07:00
toasted-nutbread
76aa30ceba
Add writingMode to PopupProxy* termsShow and kanjiShow
2019-09-11 21:29:08 -04:00
toasted-nutbread
bc8793eb56
Add a context object for all calls to fetch options
2019-09-10 20:09:33 -04:00
toasted-nutbread
99ca60d4c1
Ensure both Popup and PopupProxy have valid depth
2019-09-10 20:09:33 -04:00
toasted-nutbread
91bc31d758
Change how options updates are handled on the frontend
...
Only an 'optionsUpdate' signal is now sent to the frontend with empty data. The frontend then responds by performing apiOptionsGet to update the options. This makes it so that there is only a single function which is responsible for requesting options from the backend.
2019-09-10 20:09:33 -04:00
Alex Yatskov
cc53510883
Merge pull request #204 from toasted-nutbread/settings-improvements
...
Settings improvements
2019-09-08 19:34:39 -07:00
toasted-nutbread
7db2c66105
Use consistent structure for params
2019-09-06 21:23:35 -04:00
toasted-nutbread
13b184707b
Remove unnecessary functions
...
apiOptionsSet not required in bg/js/api.js after optionsSave; optionsSave already invokes apiOptionsSet.
apiOptionsSet not required in fg/js/api.js since it's never invoked by the foreground.
optionsSet handler not required in bg/js/backend.js since the message is never sent by the foreground.
2019-09-06 21:23:35 -04:00
Alex Yatskov
155986db46
Merge pull request #201 from toasted-nutbread/omit-contains-point-check
...
Omit containsPoint check on searchAt
2019-09-05 19:46:43 -07:00
Alex Yatskov
6dc44e3f33
Merge pull request #202 from toasted-nutbread/temporary-object-optimization
...
Temporary object optimization
2019-09-05 19:46:14 -07:00
toasted-nutbread
5c793180d0
Omit containsPoint check on searchAt
...
The range returned by docRangeFromPoint is now guaranteed to contain the point due to the addition of isPointInRange checks.
2019-09-03 19:17:50 -04:00
toasted-nutbread
9028b55774
Fix nested popups closing when the mouse leaves the parent's rect
2019-09-03 18:55:55 -04:00
toasted-nutbread
fc4a961412
Replace some instances of Array.concat
...
.push or .unshift can accomplish the same operation without constructing new arrays.
2019-09-02 20:25:30 -04:00
toasted-nutbread
fad5332488
Move static DOM scanning functions into TextSourceRange
2019-09-02 19:33:52 -04:00
siikamiika
f4b81eff30
fix parent focus issues for Firefox and Chrome
2019-09-02 19:33:52 -04:00
siikamiika
2df9a7f977
change Popup.children to Popup.child
2019-09-02 19:33:52 -04:00
siikamiika
97be029dee
focus the site when closing multi-level popups
2019-09-02 19:33:52 -04:00
siikamiika
834f14e808
simplified if statement back to single line
2019-09-02 19:33:52 -04:00
siikamiika
3d28a3a405
prevent closing new child popup on parent mouseout
2019-09-02 19:33:52 -04:00
siikamiika
e4d302e786
focus parent popup on hide instead of blurring
2019-09-02 19:33:52 -04:00
siikamiika
87ff5cb19b
make containsPoint async everywhere
2019-09-02 19:33:52 -04:00
toasted-nutbread
71471d08e5
Add option to enable/disable scanning of source expressions in popups
2019-09-02 19:33:52 -04:00
toasted-nutbread
3491affcf1
Update nested initialization parameters passed via message rather than using the URL query string
2019-09-02 19:33:28 -04:00
toasted-nutbread
53aad0bef6
Fix messaging issues when iframes are present in the document
2019-09-02 19:33:28 -04:00
toasted-nutbread
1a9348ec27
Add option for maximum nested popup depth
2019-09-02 19:32:08 -04:00
toasted-nutbread
5c4614f585
Add support for showing recursive popups
2019-09-02 19:31:42 -04:00
toasted-nutbread
33076e9db9
Fix typo
2019-09-02 11:43:49 -04:00
toasted-nutbread
c0bf6ff033
Fix issues caused by scanning ranges which don't start with a text node
...
The rects returned by range.getClientRects() could include the entire start element's bounding box.
2019-09-02 11:43:49 -04:00
toasted-nutbread
a2139213c8
Fix issue with whitespace ranges
...
The size of the rects for these ranges will sometimes be excessively large on Firefox, leading to false positives.
2019-09-02 11:43:49 -04:00
toasted-nutbread
ee59b3ab8b
Reduce amount of isPointInRange calls for repeated ranges
2019-09-02 11:43:49 -04:00
toasted-nutbread
171e3f1097
Add option for enabling deep scanning
2019-09-02 11:43:48 -04:00
toasted-nutbread
737a5ee8a8
Allow elements behind other transparent elements to be scanned
2019-09-02 11:43:33 -04:00
toasted-nutbread
d296ebd593
Improve definition of caretRangeFromPoint
2019-09-02 11:41:00 -04:00
toasted-nutbread
548607ea7f
Destructure point to {x, y} only once
2019-09-02 11:40:21 -04:00
Alex Yatskov
3c9f7ba152
Merge pull request #196 from toasted-nutbread/vertical-text-popup-position
...
Vertical text popup position
2019-09-02 08:33:10 -07:00
toasted-nutbread
e3d7ec8db7
Create container for imposter element
...
The container will prevent the imposter element's size from affecting the document's primary scrollbars.
2019-09-01 16:06:22 -04:00
toasted-nutbread
e3e7dad2cc
Use important CSS priority for imposter element styles
2019-08-31 15:30:32 -04:00
toasted-nutbread
9b46fe70de
Fix imposter issues with <input type="text">
2019-08-31 15:10:46 -04:00
toasted-nutbread
ad0dca7bb1
Make the imposter element tracked using TextSourceRange
2019-08-31 14:57:50 -04:00
toasted-nutbread
e47e041217
Disable pointer events on hidden imposter
2019-08-31 14:57:50 -04:00
toasted-nutbread
62d66d93f7
Remove rounding
2019-08-31 14:57:50 -04:00
toasted-nutbread
9e9040178d
Fix some size and positioning issues related to imposter element
2019-08-31 14:57:49 -04:00
toasted-nutbread
85472d9407
Add option for position of popup for horizontal text
2019-08-31 11:57:09 -04:00
toasted-nutbread
68af0d86c3
Improve popup position for vertical text
2019-08-31 11:57:07 -04:00
Alex Yatskov
3bf8a9ab00
Merge pull request #193 from toasted-nutbread/fix-is-point-in-range
...
Update isPointInRange to be more accurate
2019-08-29 18:00:36 -07:00
toasted-nutbread
ea9c5ad867
Update isPointInRange to be more accurate
2019-08-29 20:35:23 -04:00
Alex Yatskov
cd75f5b97d
Merge pull request #188 from toasted-nutbread/edge-support
...
Add support for Edge browser
2019-08-28 19:41:30 -07:00
toasted-nutbread
a39a1fa9e4
Add support for Edge browser
2019-08-26 21:58:03 -04:00
toasted-nutbread
c49f3c7838
Suppress messages about unchecked runtime.lastError on Firefox Mobile
2019-08-25 11:09:10 -04:00