toasted-nutbread
|
8bc1a40914
|
Use .bind instead of () => {}
|
2020-02-26 21:01:40 -05:00 |
|
toasted-nutbread
|
0f46e3a093
|
Use a token to ensure that messages are coming from Yomichan
|
2020-02-17 11:02:21 -05:00 |
|
toasted-nutbread
|
aee16c4431
|
Check origin on window messages
|
2020-02-16 23:41:17 -05:00 |
|
toasted-nutbread
|
ae4ee9ddee
|
Fix error handling on style injection
|
2020-02-16 21:49:28 -05:00 |
|
toasted-nutbread
|
3d27e80ae6
|
Delay CSS injection until a popup is created
|
2020-02-16 21:46:13 -05:00 |
|
toasted-nutbread
|
9fd6ee382d
|
Create more generic function for injecting stylesheets
|
2020-02-16 21:46:13 -05:00 |
|
toasted-nutbread
|
b6a50e234c
|
Change parameter name
|
2020-02-16 21:44:45 -05:00 |
|
toasted-nutbread
|
2c3f510010
|
Allow apiInjectStylesheet to inject a URL
|
2020-02-16 21:43:35 -05:00 |
|
toasted-nutbread
|
1c6ed1d286
|
Set URL before adding to the document
|
2020-02-16 21:41:31 -05:00 |
|
toasted-nutbread
|
c6efa65626
|
Fix missing argument
|
2020-02-16 19:09:33 -05:00 |
|
toasted-nutbread
|
dcd243c9e9
|
Update how popups are created
|
2020-02-16 18:59:08 -05:00 |
|
toasted-nutbread
|
5d3c13ee98
|
Tweak how fullscreen changes are observed
|
2020-02-16 18:52:04 -05:00 |
|
toasted-nutbread
|
36605f74c3
|
Undo "Obscure the iframe's URL from the host page"
There are some additional issues which cause the frame to be reset to
about:blank on certain occasions which must be fixed before this can be
used.
|
2020-02-16 18:47:46 -05:00 |
|
toasted-nutbread
|
b5d32c73e6
|
Simplify process to wait for iframe prepare completion
|
2020-02-16 12:23:20 -05:00 |
|
toasted-nutbread
|
912d59d3df
|
Obscure the iframe's URL from the host page
|
2020-02-15 22:39:09 -05:00 |
|
siikamiika
|
c09a3ded1d
|
Merge pull request #357 from siikamiika/simplify-display-prepare
Simplify display prepare
|
2020-02-14 11:00:36 +02:00 |
|
siikamiika
|
810a7e7d92
|
use sendMessage to notify about initialization
|
2020-02-14 02:33:54 +02:00 |
|
siikamiika
|
38a6433a46
|
remove isInjected checks from Popup
|
2020-02-13 15:04:10 +02:00 |
|
siikamiika
|
c0225f1f84
|
notify popup about initialization
|
2020-02-13 13:18:54 +02:00 |
|
toasted-nutbread
|
e2ac478cb7
|
Define more globals
|
2020-02-11 22:22:16 -05:00 |
|
toasted-nutbread
|
04727a8cd7
|
Fix viewport issues when popupScaleRelativeToVisualViewport is disabled
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
74d9b0e857
|
Update full-width popup to stay on screen
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
d59f2022b9
|
Allow viewport to be used for constraining popup position
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
4d85a36091
|
Fix popup size changing when zooming
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
e740965d4f
|
Scale popup based on current page zoom factor
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
22afab2f47
|
Remove _isInitialized
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
e51fd8ea71
|
Add _isInjectedAndLoaded property
|
2020-01-22 20:38:21 -05:00 |
|
toasted-nutbread
|
0d7ccf25b8
|
Update license info URL
|
2020-01-01 12:00:31 -05:00 |
|
toasted-nutbread
|
899ef167d1
|
Update copyright
|
2020-01-01 12:00:00 -05:00 |
|
toasted-nutbread
|
9557d8048b
|
Fix undefined reference
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
0fb2357ec7
|
isVisibleAsync => isVisible
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
29734ea6e9
|
isVisible => isVisibleSync
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
72ab6f1f45
|
Remove unused child getter
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
801df8000f
|
Mark private members
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
7c68490d2e
|
Add setParent to popup
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
30e13354b3
|
Add Popup.isProxy
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
41fadfd0a9
|
Add setChildrenSupported to popup
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
c4719cb7f4
|
Add getContainer to popup
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
4ba93b0770
|
Add getContainerRect to popup
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
37da5fef59
|
Move container definition
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
c3ea952844
|
Mark private functions
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
44bde5c676
|
Reorganize popup-only public functions
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
4014bbab42
|
Reorganize popup public functions to match popup proxy
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
8164ccfbfc
|
Group poup static functions together
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
fab0d70358
|
Move popup public properties
|
2019-12-16 19:54:41 -05:00 |
|
toasted-nutbread
|
5a1046bc90
|
Update arrow-parens to always
|
2019-11-26 22:06:27 -05:00 |
|
toasted-nutbread
|
527595f79b
|
Remove unnecessary escapes from regex literals
|
2019-11-26 22:06:27 -05:00 |
|
toasted-nutbread
|
943350a1f6
|
Use single quotes
|
2019-11-26 22:06:27 -05:00 |
|
toasted-nutbread
|
cf18e3b42e
|
Replace string.substr and string.slice with string.substring
Improves semantic clarity, and it's recommended to not use substr.
|
2019-11-24 11:02:52 -05:00 |
|
toasted-nutbread
|
7a3315d75d
|
Use chrome.runtime.getURL instead of chrome.extension.getURL
|
2019-10-22 20:23:03 -04:00 |
|
toasted-nutbread
|
8f918c63dc
|
Reposition popup on window resize rather than clear the search
Fixes #107
|
2019-10-17 18:40:43 -04:00 |
|
toasted-nutbread
|
598cd32946
|
Update *show* APIs to unified showContent and setContent
|
2019-10-17 18:40:43 -04:00 |
|
toasted-nutbread
|
b34ff7ebe9
|
Change #yomichan-float to .yomichan-float
Since there can be more than one popup, using a class makes more sense than an ID.
|
2019-10-13 12:12:52 -04:00 |
|
toasted-nutbread
|
c9158a37b5
|
Allow outer popup stylesheets to be injected
|
2019-10-13 12:12:51 -04:00 |
|
toasted-nutbread
|
118f200500
|
Simplified how the auto theme works
|
2019-10-13 12:12:51 -04:00 |
|
toasted-nutbread
|
b086fca69f
|
Add separate theme option for outer popup style
|
2019-10-12 19:00:24 -04:00 |
|
toasted-nutbread
|
883226b045
|
Update how custom CSS is applied
|
2019-10-12 19:00:24 -04:00 |
|
toasted-nutbread
|
c90bc75eb8
|
Create themes
|
2019-10-12 19:00:24 -04:00 |
|
toasted-nutbread
|
6da7683552
|
Don't pass options around for calls to termsShow, kanjiShow, etc.
|
2019-10-12 15:31:29 -04:00 |
|
toasted-nutbread
|
a5b208fb89
|
Check if objects are properly initialized before showing content
|
2019-10-12 15:31:29 -04:00 |
|
toasted-nutbread
|
194615ef21
|
Make popups store options
|
2019-10-12 15:31:29 -04:00 |
|
toasted-nutbread
|
3e249e19ac
|
Update Display initialization process
|
2019-10-12 15:31:29 -04:00 |
|
toasted-nutbread
|
cc72514ce6
|
Frontend updates
|
2019-10-11 23:24:51 -04:00 |
|
toasted-nutbread
|
cd6d4e7ee1
|
Update how popup visibility works
|
2019-10-05 21:59:37 -04:00 |
|
toasted-nutbread
|
2255fadf52
|
Rename Popup.setVisible to setVisibleOverride
|
2019-10-05 21:40:10 -04:00 |
|
toasted-nutbread
|
fa7ee468c0
|
Simplify float initialization
|
2019-10-02 21:12:24 -04:00 |
|
toasted-nutbread
|
25a4dafd73
|
Fix tab focus being changed due to settings changes
|
2019-09-29 16:48:28 -04:00 |
|
toasted-nutbread
|
dcfe722ba6
|
Add support for using optionsContext to select which profile to use
|
2019-09-18 19:14:04 -04:00 |
|
Alex Yatskov
|
e4fa658295
|
Merge pull request #212 from toasted-nutbread/frontend-cleanup
Frontend cleanup
|
2019-09-15 11:33:48 -07:00 |
|
toasted-nutbread
|
6d3037f3d6
|
Remove destructuring from searchAt, containsPoint, docRangeFromPoint
|
2019-09-14 14:27:25 -04:00 |
|
toasted-nutbread
|
964de775df
|
Validate contentWindow before focus
|
2019-09-14 12:02:31 -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 |
|
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
|
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
|
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
|
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 |
|
toasted-nutbread
|
0f0adf750c
|
Add ability to save screenshot to anki cards
|
2019-08-15 19:39:58 -04:00 |
|
siikamiika
|
c08bcd7c56
|
return focus to site after hiding popup
|
2019-08-01 00:25:31 +03:00 |
|
toasted-nutbread
|
ad897713e6
|
Add support for custom popup CSS
|
2019-07-09 18:06:27 -04:00 |
|
toasted-nutbread
|
2974b592ab
|
Allow popup window to be visible in fullscreen mode
Fixes #163
|
2019-06-22 23:01:49 -04:00 |
|
Alex Yatskov
|
84b990cd80
|
Merge pull request #140 from KarboniteKream/horizontal-offset
Add horizontal popup offset
|
2019-05-19 17:43:31 -07:00 |
|
toasted-nutbread
|
ba972d8547
|
Add popup display mode
Allows the popup to be stretched to the full width of the screen, anchored to the top or bottom of the window.
|
2019-02-14 21:42:59 -05:00 |
|
Klemen Košir
|
99a231a773
|
Add horizontal popup offset
|
2018-10-02 23:27:59 +09:00 |
|
guidocella
|
15b93060c7
|
Add option to play audio automatically
|
2017-12-16 19:56:53 +01:00 |
|
|
5476c10046
|
more improvements to automatic search result hiding (#71)
|
2017-09-17 10:09:48 -07:00 |
|
|
3362a68e06
|
frontend cleanup
|
2017-08-15 20:04:15 -07:00 |
|
|
bdf231082f
|
lots of fixes to backend
|
2017-08-14 21:43:09 -07:00 |
|
|
82863cd861
|
renaming files
|
2017-08-14 19:55:04 -07:00 |
|
|
3ca28a9374
|
wip
|
2017-08-13 16:42:22 -07:00 |
|
|
231b471f45
|
wip
|
2017-03-16 22:13:54 -07:00 |
|
|
8893db14ca
|
wip
|
2017-03-15 21:13:58 -07:00 |
|
|
8fb398aad8
|
inject yomichan frame on demand, fixes #34
|
2017-03-15 20:13:58 -07:00 |
|
|
83e2fd4748
|
add options for setting popup width, height, offset
|
2017-03-11 17:48:30 -08:00 |
|